diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2013-10-31 21:25:49 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2013-10-31 21:25:49 (GMT) |
commit | f848d1d529527932b9e467df39b92efe6cc135c5 (patch) | |
tree | 555abebafcee76ed9fec5cbf33b71c86ac02b4cc | |
parent | cbb12f8e904ca926c14cba9d41e99aa6f48c8e90 (diff) | |
parent | f46c814d2d9a8f709c8adeb6fdf1da896d80dbee (diff) | |
download | tk-f848d1d529527932b9e467df39b92efe6cc135c5.zip tk-f848d1d529527932b9e467df39b92efe6cc135c5.tar.gz tk-f848d1d529527932b9e467df39b92efe6cc135c5.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 4485df8..ad009b9 100644 --- a/generic/tkFont.c +++ b/generic/tkFont.c @@ -1517,8 +1517,8 @@ FreeFontObj( fontPtr->objRefCount--; if ((fontPtr->resourceRefCount == 0) && (fontPtr->objRefCount == 0)) { ckfree(fontPtr); - objPtr->internalRep.twoPtrValue.ptr1 = NULL; } + objPtr->internalRep.twoPtrValue.ptr1 = NULL; } } |