diff options
author | hypnotoad <yoda@etoyoc.com> | 2014-08-27 15:10:51 (GMT) |
---|---|---|
committer | hypnotoad <yoda@etoyoc.com> | 2014-08-27 15:10:51 (GMT) |
commit | b5f3290552fc8c5b9c0db94e85bf8aaf4ec6e5ed (patch) | |
tree | 0b9623871c00a044fcd6e74cd18a378b059f1ba9 | |
parent | 94cd41bca17091f9de05687ef4cc17e70316238a (diff) | |
download | tk-b5f3290552fc8c5b9c0db94e85bf8aaf4ec6e5ed.zip tk-b5f3290552fc8c5b9c0db94e85bf8aaf4ec6e5ed.tar.gz tk-b5f3290552fc8c5b9c0db94e85bf8aaf4ec6e5ed.tar.bz2 |
Apply a similar dealloc fix to menubuttonmacosx_button_segfault
-rw-r--r-- | macosx/tkMacOSXMenubutton.c | 1 |
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); } |