summaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
authorfvogel <fvogelnew1@free.fr>2017-08-09 20:25:31 (GMT)
committerfvogel <fvogelnew1@free.fr>2017-08-09 20:25:31 (GMT)
commitd6468ef16f3790625f9680246d0456df46ca3464 (patch)
tree9818e450a6422c3119a5afa228e1f10f616282a1 /generic
parent53bd11aa50181ad6112b9a72fda543db9ec7a4ca (diff)
downloadtk-d6468ef16f3790625f9680246d0456df46ca3464.zip
tk-d6468ef16f3790625f9680246d0456df46ca3464.tar.gz
tk-d6468ef16f3790625f9680246d0456df46ca3464.tar.bz2
Fix [f1a3ca09d2]: Memory leak in generic/tkTextBTree.c. Patch from 'edhume3'.
Diffstat (limited to 'generic')
-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;