summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2014-11-06 17:31:05 (GMT)
committerdgp <dgp@users.sourceforge.net>2014-11-06 17:31:05 (GMT)
commite9a973965aa9116a2a2b967dededa3094b174255 (patch)
treeb6af4c983608e6aacbd8ef94191c516e429820cd
parent56e5cece3f50562969449e4357e5dc1cf3907c1a (diff)
parent3216e67c5daaf17434319af4d2456c2209b5d39f (diff)
downloadtk-e9a973965aa9116a2a2b967dededa3094b174255.zip
tk-e9a973965aa9116a2a2b967dededa3094b174255.tar.gz
tk-e9a973965aa9116a2a2b967dededa3094b174255.tar.bz2
[9d72dcd3bc] Plug memleak
-rw-r--r--macosx/tkMacOSXButton.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/macosx/tkMacOSXButton.c b/macosx/tkMacOSXButton.c
index adbdda0..d4aae8d 100644
--- a/macosx/tkMacOSXButton.c
+++ b/macosx/tkMacOSXButton.c
@@ -197,7 +197,7 @@ TkpDestroyButton(
[macButtonPtr->button setTag:(NSInteger)-1];
TkMacOSXMakeCollectableAndRelease(macButtonPtr->button);
- TkMacOSXMakeCollectableAndRelease(macButtonPtr->selectImage);
+ TkMacOSXMakeCollectableAndRelease(macButtonPtr->image);
TkMacOSXMakeCollectableAndRelease(macButtonPtr->selectImage);
TkMacOSXMakeCollectableAndRelease(macButtonPtr->tristateImage);
}