summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--generic/tkMenu.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/generic/tkMenu.c b/generic/tkMenu.c
index fbf4e33..95a3b95 100644
--- a/generic/tkMenu.c
+++ b/generic/tkMenu.c
@@ -1176,7 +1176,8 @@ DestroyMenuInstance(
* for menu entries (i+1)...numEntries.
*/
- DestroyMenuEntry(menuPtr->entries[i]);
+ Tcl_EventuallyFree(menuPtr->entries[i],
+ (Tcl_FreeProc*)DestroyMenuEntry);
menuPtr->numEntries = i;
}
if (menuPtr->entries != NULL) {