summaryrefslogtreecommitdiffstats
path: root/macosx/tkMacOSXButton.c
diff options
context:
space:
mode:
authordgp@users.sourceforge.net <dgp>2014-08-27 15:35:19 (GMT)
committerdgp@users.sourceforge.net <dgp>2014-08-27 15:35:19 (GMT)
commit047103d3c4a8d6e40a251f2239e7d8701a24b9c8 (patch)
tree731e58a3e5439c0d85efe1c0a54321bb2b1e710d /macosx/tkMacOSXButton.c
parent304219f3b39aca231262ee95be73c433a93db401 (diff)
parent62ea8d47cdacb3e66c4ec8ab5ab92298bc095f1c (diff)
downloadtk-047103d3c4a8d6e40a251f2239e7d8701a24b9c8.zip
tk-047103d3c4a8d6e40a251f2239e7d8701a24b9c8.tar.gz
tk-047103d3c4a8d6e40a251f2239e7d8701a24b9c8.tar.bz2
Stop segfaults on Mac OSX after [$button destroy].
Diffstat (limited to 'macosx/tkMacOSXButton.c')
-rw-r--r--macosx/tkMacOSXButton.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/macosx/tkMacOSXButton.c b/macosx/tkMacOSXButton.c
index 9896971..95611d0 100644
--- a/macosx/tkMacOSXButton.c
+++ b/macosx/tkMacOSXButton.c
@@ -187,6 +187,7 @@ TkpDestroyButton(
TkButton *butPtr)
{
MacButton *macButtonPtr = (MacButton *) butPtr;
+ [macButtonPtr->button setTag:(NSInteger)-1];
TkMacOSXMakeCollectableAndRelease(macButtonPtr->button);
TkMacOSXMakeCollectableAndRelease(macButtonPtr->selectImage);