summaryrefslogtreecommitdiffstats
path: root/macosx/tkMacOSXButton.c
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2014-08-27 15:35:19 (GMT)
committerdgp <dgp@users.sourceforge.net>2014-08-27 15:35:19 (GMT)
commitcb4d037f18fe2e801256ce75d34695bdabf10a71 (patch)
treeb15211137315a312fec3c7380fda208bfbccd014 /macosx/tkMacOSXButton.c
parentfdc8a93f5b18a9d6f46c7cf970267b09cb358530 (diff)
parentb5f3290552fc8c5b9c0db94e85bf8aaf4ec6e5ed (diff)
downloadtk-cb4d037f18fe2e801256ce75d34695bdabf10a71.zip
tk-cb4d037f18fe2e801256ce75d34695bdabf10a71.tar.gz
tk-cb4d037f18fe2e801256ce75d34695bdabf10a71.tar.bz2
Stop segfaults on Mac OSX after [$button destroy].core_8_5_16
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);