summaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2013-10-31 21:25:49 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2013-10-31 21:25:49 (GMT)
commita839e8bd1116069997b2e67a866505afa34c623a (patch)
tree555abebafcee76ed9fec5cbf33b71c86ac02b4cc /generic
parent8027c838cc92d6350e069b635a1fa53d231eb203 (diff)
parentaf13357d827091e757f070c107784da2d6397bc4 (diff)
downloadtk-a839e8bd1116069997b2e67a866505afa34c623a.zip
tk-a839e8bd1116069997b2e67a866505afa34c623a.tar.gz
tk-a839e8bd1116069997b2e67a866505afa34c623a.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.c2
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;
}
}