summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfvogel <fvogelnew1@free.fr>2017-08-24 19:20:16 (GMT)
committerfvogel <fvogelnew1@free.fr>2017-08-24 19:20:16 (GMT)
commit69427a14caab82968d945571eefd26a5a112c9cf (patch)
tree01bd021ff24c87d950af6328532fb567b9ea5ba7
parent2d8d3023b36fcb49f8740215c7066241254c7520 (diff)
parent5b6ada6ebb8a32bc853ed5361924d263e1560a2a (diff)
downloadtk-69427a14caab82968d945571eefd26a5a112c9cf.zip
tk-69427a14caab82968d945571eefd26a5a112c9cf.tar.gz
tk-69427a14caab82968d945571eefd26a5a112c9cf.tar.bz2
Fix [f1a3ca09d2]: Memory leak in generic/tkTextBTree.c. Patch from 'edhume3'.Fix [f1a3ca09d2]: Memory leak in generic/tkTextBTree.c. Patch from 'edhume3'.
-rw-r--r--generic/tkTextBTree.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/generic/tkTextBTree.c b/generic/tkTextBTree.c
index c20c546..81e31dc 100644
--- a/generic/tkTextBTree.c
+++ b/generic/tkTextBTree.c
@@ -799,6 +799,7 @@ RemovePixelClient(
nodePtr->numPixels[treePtr->pixelReferences-1];
}
if (treePtr->pixelReferences == 1) {
+ ckfree(nodePtr->numPixels);
nodePtr->numPixels = NULL;
} else {
nodePtr->numPixels = ckrealloc(nodePtr->numPixels,
@@ -1439,6 +1440,7 @@ TkBTreeDeleteIndexRange(
prevNodePtr->nextPtr = curNodePtr->nextPtr;
}
parentPtr->numChildren--;
+ DeleteSummaries(curNodePtr->summaryPtr);
ckfree(curNodePtr->numPixels);
ckfree(curNodePtr);
curNodePtr = parentPtr;