summaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2014-11-06 18:33:04 (GMT)
committerdgp <dgp@users.sourceforge.net>2014-11-06 18:33:04 (GMT)
commit1d9e044ef59c5a3e36e20c161ecd5b8e4b09ad3c (patch)
tree789a944bc0d31fe0584b4612e8cf7d4b44d2d542 /generic
parente9a973965aa9116a2a2b967dededa3094b174255 (diff)
parentba46065bdddd77146da41ff64ffd1f6dce7189e1 (diff)
downloadtk-1d9e044ef59c5a3e36e20c161ecd5b8e4b09ad3c.zip
tk-1d9e044ef59c5a3e36e20c161ecd5b8e4b09ad3c.tar.gz
tk-1d9e044ef59c5a3e36e20c161ecd5b8e4b09ad3c.tar.bz2
Stop invalid read
Diffstat (limited to 'generic')
-rw-r--r--generic/tkMenu.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/generic/tkMenu.c b/generic/tkMenu.c
index 1af9b88..516e9b0 100644
--- a/generic/tkMenu.c
+++ b/generic/tkMenu.c
@@ -1419,6 +1419,7 @@ DestroyMenuEntry(
}
}
UnhookCascadeEntry(mePtr);
+ menuRefPtr = mePtr->childMenuRefPtr;
if (menuRefPtr != NULL) {
if (menuRefPtr->menuPtr == destroyThis) {
menuRefPtr->menuPtr = NULL;