diff options
author | dgp <dgp@users.sourceforge.net> | 2014-08-27 15:40:18 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2014-08-27 15:40:18 (GMT) |
commit | e4475aaf250fc32a38cd2fd80e89d4d3addefae6 (patch) | |
tree | 66bebacb5370aa237841767eb904f03a98c9e75e /macosx | |
parent | 7a83c408ff097f92d2dfbb97041336962322118a (diff) | |
parent | cb4d037f18fe2e801256ce75d34695bdabf10a71 (diff) | |
download | tk-e4475aaf250fc32a38cd2fd80e89d4d3addefae6.zip tk-e4475aaf250fc32a38cd2fd80e89d4d3addefae6.tar.gz tk-e4475aaf250fc32a38cd2fd80e89d4d3addefae6.tar.bz2 |
Stop segfaults on Mac OSX after [$button destroy].
Diffstat (limited to 'macosx')
-rw-r--r-- | macosx/tkMacOSXButton.c | 1 | ||||
-rw-r--r-- | macosx/tkMacOSXMenubutton.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/macosx/tkMacOSXButton.c b/macosx/tkMacOSXButton.c index dd4cca7..9858f88 100644 --- a/macosx/tkMacOSXButton.c +++ b/macosx/tkMacOSXButton.c @@ -186,6 +186,7 @@ TkpDestroyButton( TkButton *butPtr) { MacButton *macButtonPtr = (MacButton *) butPtr; + [macButtonPtr->button setTag:(NSInteger)-1]; TkMacOSXMakeCollectableAndRelease(macButtonPtr->button); TkMacOSXMakeCollectableAndRelease(macButtonPtr->selectImage); 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); } |