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