adium 3721:f688c7e6e4e6: Fixed 2 memory leaks in AIListOutlineView
commits at adium.im
commits at adium.im
Thu Mar 10 18:38:04 UTC 2011
details: http://hg.adium.im/adium/rev/f688c7e6e4e6
revision: 3721:f688c7e6e4e6
branch: (none)
author: Adrian Godoroja <robotive at me.com>
date: Wed Mar 09 13:37:36 2011 +0200
Fixed 2 memory leaks in AIListOutlineView
diffs (52 lines):
diff -r 2d13db131543 -r f688c7e6e4e6 Frameworks/Adium Framework/Source/AIListOutlineView.h
--- a/Frameworks/Adium Framework/Source/AIListOutlineView.h Thu Mar 10 19:26:41 2011 +0100
+++ b/Frameworks/Adium Framework/Source/AIListOutlineView.h Wed Mar 09 13:37:36 2011 +0200
@@ -55,8 +55,6 @@
@property (readonly, nonatomic) NSInteger desiredHeight;
@property (readonly, nonatomic) NSInteger desiredWidth;
-- (void)setMinimumDesiredWidth:(CGFloat)inMinimumDesiredWidth;
-- (void)setDesiredHeightPadding:(int)inPadding;
//Contact menu
@property (readonly, nonatomic) AIListObject *listObject;
@@ -72,10 +70,17 @@
*/
@property (readonly, nonatomic) int indexOfFirstVisibleListContact;
+- (void)setMinimumDesiredWidth:(CGFloat)inMinimumDesiredWidth;
+- (void)setDesiredHeightPadding:(int)inPadding;
+
@end
@interface AIListOutlineView (AIListOutlineView_Drawing)
+ at property (readwrite, nonatomic, retain) NSColor *backgroundColor;
+ at property (readwrite, nonatomic, retain) NSColor *highlightColor;
+ at property (readwrite, nonatomic, retain) NSColor *alternatingRowColor;
+
//Shadows
- (void)setUpdateShadowsWhileDrawing:(BOOL)update;
@@ -84,8 +89,5 @@
- (void)setBackgroundStyle:(AIBackgroundStyle)inBackgroundStyle;
- (void)setBackgroundOpacity:(CGFloat)opacity forWindowStyle:(AIContactListWindowStyle)windowStyle;
- (void)setBackgroundFade:(CGFloat)fade;
- at property (readwrite, nonatomic, retain) NSColor *backgroundColor;
- at property (readwrite, nonatomic, retain) NSColor *highlightColor;
- at property (readwrite, nonatomic, retain) NSColor *alternatingRowColor;
@end
diff -r 2d13db131543 -r f688c7e6e4e6 Frameworks/Adium Framework/Source/AIListOutlineView.m
--- a/Frameworks/Adium Framework/Source/AIListOutlineView.m Thu Mar 10 19:26:41 2011 +0100
+++ b/Frameworks/Adium Framework/Source/AIListOutlineView.m Wed Mar 09 13:37:36 2011 +0200
@@ -88,6 +88,9 @@
[backgroundImage release];
[backgroundColor release];
+ [highlightColor release];
+ [rowColor release];
+
[self unregisterDraggedTypes];
[[NSNotificationCenter defaultCenter] removeObserver:self];
More information about the commits
mailing list