summaryrefslogtreecommitdiffstats
path: root/macosx/tkMacOSXScrlbr.c
diff options
context:
space:
mode:
authorKevin Walzer <kw@codebykevin.com>2013-08-25 03:11:59 (GMT)
committerKevin Walzer <kw@codebykevin.com>2013-08-25 03:11:59 (GMT)
commitac926c8962ff29dc01aaf033abe31036311c5d28 (patch)
tree8f98c9055b7f7208b12d3d69721bd5036c6803a5 /macosx/tkMacOSXScrlbr.c
parent14777a1672ff90ca5fc683fdba37bd4bc262e163 (diff)
downloadtk-ac926c8962ff29dc01aaf033abe31036311c5d28.zip
tk-ac926c8962ff29dc01aaf033abe31036311c5d28.tar.gz
tk-ac926c8962ff29dc01aaf033abe31036311c5d28.tar.bz2
Fix for 3016181, thanks to Tom Goddard for patch
Diffstat (limited to 'macosx/tkMacOSXScrlbr.c')
-rw-r--r--macosx/tkMacOSXScrlbr.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/macosx/tkMacOSXScrlbr.c b/macosx/tkMacOSXScrlbr.c
index ff91ffd..4b3bc31 100644
--- a/macosx/tkMacOSXScrlbr.c
+++ b/macosx/tkMacOSXScrlbr.c
@@ -254,6 +254,8 @@ TkpDestroyScrollbar(
TkScrollbar *scrollPtr)
{
MacScrollbar *macScrollPtr = (MacScrollbar *) scrollPtr;
+ NSScroller *scroller = macScrollPtr->scroller;
+ [scroller setTag:(NSInteger)0];
TkMacOSXMakeCollectableAndRelease(macScrollPtr->scroller);
}