Subject: Apply a similar dealloc fix to menubutton

From: hypnotoad <[email-masked]>
Date: Wed, 27 Aug 2014 15:10:51 +0000

---
 macosx/tkMacOSXMenubutton.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/macosx/tkMacOSXMenubutton.c b/macosx/tkMacOSXMenubutton.c
index d6e635a..df42763 100644
--- a/macosx/tkMacOSXMenubutton.c
+++ b/macosx/tkMacOSXMenubutton.c
@@ -116,6 +116,7 @@ TkpDestroyMenuButton(
     TkMenuButton *mbPtr)
 {
     MacMenuButton *macButtonPtr = (MacMenuButton *) mbPtr;
+    [macButtonPtr->button setTag:(NSInteger)-1];
 
     TkMacOSXMakeCollectableAndRelease(macButtonPtr->button);
 }
-- 
cgit v0.12