summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoryoda@etoyoc.com <hypnotoad>2014-08-27 15:10:51 (GMT)
committeryoda@etoyoc.com <hypnotoad>2014-08-27 15:10:51 (GMT)
commit62ea8d47cdacb3e66c4ec8ab5ab92298bc095f1c (patch)
tree16e55537493dd35a1fca08c56b61313b0d1cf777
parentd7de67c2c9843001f6a7322284dd6d442fa58b4a (diff)
downloadtk-62ea8d47cdacb3e66c4ec8ab5ab92298bc095f1c.zip
tk-62ea8d47cdacb3e66c4ec8ab5ab92298bc095f1c.tar.gz
tk-62ea8d47cdacb3e66c4ec8ab5ab92298bc095f1c.tar.bz2
Apply a similar dealloc fix to menubutton
-rw-r--r--macosx/tkMacOSXMenubutton.c1
1 files changed, 1 insertions, 0 deletions
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);
}