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 | a18eb9e56aadbe7a69b04f0568c28cc4470781e7 (patch) | |
tree | 330d356c3b40c5dfb0fa07ac67d91409722e265c /generic | |
parent | 15a1cdf10cb950eca1f3822bda04f109aada1660 (diff) | |
download | tk-a18eb9e56aadbe7a69b04f0568c28cc4470781e7.zip tk-a18eb9e56aadbe7a69b04f0568c28cc4470781e7.tar.gz tk-a18eb9e56aadbe7a69b04f0568c28cc4470781e7.tar.bz2 |
Stop invalid read.
Diffstat (limited to 'generic')
-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; |