diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2013-10-31 21:25:00 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2013-10-31 21:25:00 (GMT) |
commit | f46c814d2d9a8f709c8adeb6fdf1da896d80dbee (patch) | |
tree | ea5850d6b2e28461641aebb3c82617716170d3b3 /generic | |
parent | 4f970286ec90b02eaf3ad950648ca61a79c193e9 (diff) | |
download | tk-f46c814d2d9a8f709c8adeb6fdf1da896d80dbee.zip tk-f46c814d2d9a8f709c8adeb6fdf1da896d80dbee.tar.gz tk-f46c814d2d9a8f709c8adeb6fdf1da896d80dbee.tar.bz2 |
Fix refcount bug in FreeFontObjProc. Could result in freeing a TkFont which was already freed.
Diffstat (limited to 'generic')
-rw-r--r-- | generic/tkFont.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/generic/tkFont.c b/generic/tkFont.c index 1a6474f..9eaaf94 100644 --- a/generic/tkFont.c +++ b/generic/tkFont.c @@ -1522,8 +1522,8 @@ FreeFontObjProc( fontPtr->objRefCount--; if ((fontPtr->resourceRefCount == 0) && (fontPtr->objRefCount == 0)) { ckfree((char *) fontPtr); - objPtr->internalRep.twoPtrValue.ptr1 = NULL; } + objPtr->internalRep.twoPtrValue.ptr1 = NULL; } } |