diff options
author | dgp <dgp@users.sourceforge.net> | 2014-11-06 18:31:41 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2014-11-06 18:31:41 (GMT) |
commit | c633d2d28589343b1b0de2e579d68cc7ced3b1cc (patch) | |
tree | 389a5c2f413ee9c75060bcf2ac054be1042fab92 | |
parent | 889caa2567b47057aa51de594e244e86a5b69bf6 (diff) | |
download | tk-c633d2d28589343b1b0de2e579d68cc7ced3b1cc.zip tk-c633d2d28589343b1b0de2e579d68cc7ced3b1cc.tar.gz tk-c633d2d28589343b1b0de2e579d68cc7ced3b1cc.tar.bz2 |
Stop invalid read.
-rw-r--r-- | generic/tkMenu.c | 1 |
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; |