diff options
author | fvogel <fvogelnew1@free.fr> | 2017-08-09 20:25:31 (GMT) |
---|---|---|
committer | fvogel <fvogelnew1@free.fr> | 2017-08-09 20:25:31 (GMT) |
commit | 5b6ada6ebb8a32bc853ed5361924d263e1560a2a (patch) | |
tree | 9818e450a6422c3119a5afa228e1f10f616282a1 /generic | |
parent | 1364a529c92c6e64af2308174eb56b09001e5fa7 (diff) | |
download | tk-bug_f1a3ca09d2.zip tk-bug_f1a3ca09d2.tar.gz tk-bug_f1a3ca09d2.tar.bz2 |
Fix [f1a3ca09d2]: Memory leak in generic/tkTextBTree.c. Patch from 'edhume3'.bug_f1a3ca09d2
Diffstat (limited to 'generic')
-rw-r--r-- | generic/tkTextBTree.c | 2 |
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; |