diff options
author | dgp <dgp@users.sourceforge.net> | 2014-11-06 18:33:04 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2014-11-06 18:33:04 (GMT) |
commit | 1d9e044ef59c5a3e36e20c161ecd5b8e4b09ad3c (patch) | |
tree | 789a944bc0d31fe0584b4612e8cf7d4b44d2d542 /generic/tkMenu.c | |
parent | e9a973965aa9116a2a2b967dededa3094b174255 (diff) | |
parent | ba46065bdddd77146da41ff64ffd1f6dce7189e1 (diff) | |
download | tk-1d9e044ef59c5a3e36e20c161ecd5b8e4b09ad3c.zip tk-1d9e044ef59c5a3e36e20c161ecd5b8e4b09ad3c.tar.gz tk-1d9e044ef59c5a3e36e20c161ecd5b8e4b09ad3c.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 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; |