summaryrefslogtreecommitdiffstats
path: root/generic/tkMenu.c
diff options
context:
space:
mode:
authordgp@users.sourceforge.net <dgp>2014-11-06 18:31:41 (GMT)
committerdgp@users.sourceforge.net <dgp>2014-11-06 18:31:41 (GMT)
commitc03d5881b79c71e1ea30065260382c63ddf0e469 (patch)
tree389a5c2f413ee9c75060bcf2ac054be1042fab92 /generic/tkMenu.c
parentd507d71c14a70c860e952635d0704193114e4a0f (diff)
downloadtk-c03d5881b79c71e1ea30065260382c63ddf0e469.zip
tk-c03d5881b79c71e1ea30065260382c63ddf0e469.tar.gz
tk-c03d5881b79c71e1ea30065260382c63ddf0e469.tar.bz2
Stop invalid read.
Diffstat (limited to 'generic/tkMenu.c')
-rw-r--r--generic/tkMenu.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/generic/tkMenu.c b/generic/tkMenu.c
index 064eaca..3808b09 100644
--- a/generic/tkMenu.c
+++ b/generic/tkMenu.c
@@ -1461,6 +1461,7 @@ DestroyMenuEntry(
}
}
UnhookCascadeEntry(mePtr);
+ menuRefPtr = mePtr->childMenuRefPtr;
if (menuRefPtr != NULL) {
if (menuRefPtr->menuPtr == destroyThis) {
menuRefPtr->menuPtr = NULL;