From a18eb9e56aadbe7a69b04f0568c28cc4470781e7 Mon Sep 17 00:00:00 2001 From: "dgp@users.sourceforge.net" Date: Thu, 6 Nov 2014 18:31:41 +0000 Subject: Stop invalid read. --- generic/tkMenu.c | 1 + 1 file changed, 1 insertion(+) 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; -- cgit v0.12