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 | ba46065bdddd77146da41ff64ffd1f6dce7189e1 (patch) | |
tree | 389a5c2f413ee9c75060bcf2ac054be1042fab92 /generic/tkMenu.c | |
parent | 3216e67c5daaf17434319af4d2456c2209b5d39f (diff) | |
download | tk-ba46065bdddd77146da41ff64ffd1f6dce7189e1.zip tk-ba46065bdddd77146da41ff64ffd1f6dce7189e1.tar.gz tk-ba46065bdddd77146da41ff64ffd1f6dce7189e1.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; |