diff options
author | nijtmans@users.sourceforge.net <jan.nijtmans> | 2013-10-31 21:25:00 (GMT) |
---|---|---|
committer | nijtmans@users.sourceforge.net <jan.nijtmans> | 2013-10-31 21:25:00 (GMT) |
commit | d8aa9d7fd5ffba2300ed5f295329b7a00e637c74 (patch) | |
tree | 4af23af19b3b8fe64e55960d683aea74df9fee62 | |
parent | ea95fb6e8119cc963c5845bdcd23758791849226 (diff) | |
download | tk-d8aa9d7fd5ffba2300ed5f295329b7a00e637c74.zip tk-d8aa9d7fd5ffba2300ed5f295329b7a00e637c74.tar.gz tk-d8aa9d7fd5ffba2300ed5f295329b7a00e637c74.tar.bz2 |
Fix refcount bug in FreeFontObjProc. Could result in freeing a TkFont which was already freed.
-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; } } |