adium-1.4 3408:ef8f41a4bdad: Fixed 2 memory leaks in AIListOutli...
commits at adium.im
commits at adium.im
Thu Mar 10 18:38:00 UTC 2011
details: http://hg.adium.im/adium-1.4/rev/ef8f41a4bdad
revision: 3408:ef8f41a4bdad
branch: (none)
author: Adrian Godoroja <robotive at me.com>
date: Wed Mar 09 13:35:28 2011 +0200
Fixed 2 memory leaks in AIListOutlineView / Removed one missing file reference in Xcode
diffs (71 lines):
diff -r 433c2e27695e -r ef8f41a4bdad Adium.xcodeproj/project.pbxproj
--- a/Adium.xcodeproj/project.pbxproj Thu Mar 10 18:43:41 2011 +0100
+++ b/Adium.xcodeproj/project.pbxproj Wed Mar 09 13:35:28 2011 +0200
@@ -3685,7 +3685,6 @@
34D000C50957918000DCB678 /* ContactListRecentImages.nib */ = {isa = PBXFileReference; lastKnownFileType = wrapper.nib; name = ContactListRecentImages.nib; path = Resources/ContactListRecentImages.nib; sourceTree = "<group>"; };
34D001E50958868000DCB678 /* AIMenuItemView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = AIMenuItemView.h; path = Source/AIMenuItemView.h; sourceTree = "<group>"; };
34D001E60958868000DCB678 /* AIMenuItemView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = AIMenuItemView.m; path = Source/AIMenuItemView.m; sourceTree = "<group>"; };
- 34D007B0095964EF00DCB678 /* NSIPRecentPicture.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = NSIPRecentPicture.h; path = Source/NSIPRecentPicture.h; sourceTree = "<group>"; };
34D007D9095966E200DCB678 /* AIContactListRecentImagesWindowController.m */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.objc; name = AIContactListRecentImagesWindowController.m; path = Source/AIContactListRecentImagesWindowController.m; sourceTree = "<group>"; };
34D007DA095966E200DCB678 /* AIContactListRecentImagesWindowController.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; name = AIContactListRecentImagesWindowController.h; path = Source/AIContactListRecentImagesWindowController.h; sourceTree = "<group>"; };
34D0F9C80954E70100DCB678 /* AIContactListImagePicker.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; name = AIContactListImagePicker.h; path = Source/AIContactListImagePicker.h; sourceTree = "<group>"; };
@@ -5785,7 +5784,6 @@
34607EF209B22933000DB3D2 /* User Icon Changing */ = {
isa = PBXGroup;
children = (
- 34D007B0095964EF00DCB678 /* NSIPRecentPicture.h */,
3489506A0CDE0CC5002FEB4D /* IKRecentPicture.h */,
34D0F9C80954E70100DCB678 /* AIContactListImagePicker.h */,
34D0F9C90954E70100DCB678 /* AIContactListImagePicker.m */,
diff -r 433c2e27695e -r ef8f41a4bdad Frameworks/Adium Framework/Source/AIListOutlineView.h
--- a/Frameworks/Adium Framework/Source/AIListOutlineView.h Thu Mar 10 18:43:41 2011 +0100
+++ b/Frameworks/Adium Framework/Source/AIListOutlineView.h Wed Mar 09 13:35:28 2011 +0200
@@ -55,8 +55,6 @@
@property (readonly, nonatomic) NSInteger desiredHeight;
@property (readonly, nonatomic) NSInteger desiredWidth;
-- (void)setMinimumDesiredWidth:(int)inMinimumDesiredWidth;
-- (void)setDesiredHeightPadding:(int)inPadding;
//Contact menu
@property (readonly, nonatomic) AIListObject *listObject;
@@ -71,10 +69,17 @@
*/
@property (readonly, nonatomic) int indexOfFirstVisibleListContact;
+- (void)setMinimumDesiredWidth:(int)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;
@@ -83,8 +88,5 @@
- (void)setBackgroundStyle:(AIBackgroundStyle)inBackgroundStyle;
- (void)setBackgroundOpacity:(float)opacity forWindowStyle:(AIContactListWindowStyle)windowStyle;
- (void)setBackgroundFade:(float)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 433c2e27695e -r ef8f41a4bdad Frameworks/Adium Framework/Source/AIListOutlineView.m
--- a/Frameworks/Adium Framework/Source/AIListOutlineView.m Thu Mar 10 18:43:41 2011 +0100
+++ b/Frameworks/Adium Framework/Source/AIListOutlineView.m Wed Mar 09 13:35:28 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