summaryrefslogtreecommitdiffstats
path: root/macosx/tkMacOSXMenubutton.c
diff options
context:
space:
mode:
authorhypnotoad <yoda@etoyoc.com>2014-08-27 15:10:51 (GMT)
committerhypnotoad <yoda@etoyoc.com>2014-08-27 15:10:51 (GMT)
commitb5f3290552fc8c5b9c0db94e85bf8aaf4ec6e5ed (patch)
tree0b9623871c00a044fcd6e74cd18a378b059f1ba9 /macosx/tkMacOSXMenubutton.c
parent94cd41bca17091f9de05687ef4cc17e70316238a (diff)
downloadtk-b5f3290552fc8c5b9c0db94e85bf8aaf4ec6e5ed.zip
tk-b5f3290552fc8c5b9c0db94e85bf8aaf4ec6e5ed.tar.gz
tk-b5f3290552fc8c5b9c0db94e85bf8aaf4ec6e5ed.tar.bz2
Apply a similar dealloc fix to menubuttonmacosx_button_segfault
Diffstat (limited to 'macosx/tkMacOSXMenubutton.c')
-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);
}