From a1c6bfab1f2bda63d2246ff355be292eaa8cfdbb Mon Sep 17 00:00:00 2001 From: Mitchell Livingston Date: Sat, 15 Jul 2006 16:57:06 +0000 Subject: [PATCH] Release dictionaries when done using them. --- macosx/BarButton.m | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/macosx/BarButton.m b/macosx/BarButton.m index f7939fbb7..bfdbcb2ba 100644 --- a/macosx/BarButton.m +++ b/macosx/BarButton.m @@ -58,8 +58,6 @@ [[NSColor blackColor] set]; [rect fill]; [fButtonDown unlockFocus]; - - [self setImage: fButtonNormal]; } return self; } @@ -108,6 +106,9 @@ [fButtonDown unlockFocus]; [self setImage: fButtonNormal]; + + [normalAttributes release]; + [highlightedAttributes release]; } - (void) mouseEntered: (NSEvent *) event @@ -143,7 +144,6 @@ - (void) setEnabled: (BOOL) enable { fEnabled = enable; - [self setImage: fEnabled ? fButtonIn : fButtonNormal]; }