summaryrefslogtreecommitdiffstats
path: root/generic/tkMenu.c
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2014-11-06 18:31:41 (GMT)
committerdgp <dgp@users.sourceforge.net>2014-11-06 18:31:41 (GMT)
commitba46065bdddd77146da41ff64ffd1f6dce7189e1 (patch)
tree389a5c2f413ee9c75060bcf2ac054be1042fab92 /generic/tkMenu.c
parent3216e67c5daaf17434319af4d2456c2209b5d39f (diff)
downloadtk-ba46065bdddd77146da41ff64ffd1f6dce7189e1.zip
tk-ba46065bdddd77146da41ff64ffd1f6dce7189e1.tar.gz
tk-ba46065bdddd77146da41ff64ffd1f6dce7189e1.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;