adium 4931:2f3a0055123e: Fix a couple of leaks in AIGradientView.

commits at adium.im commits at adium.im
Fri Jul 27 13:09:14 UTC 2012


details:	http://hg.adium.im/adium/rev/2f3a0055123e
revision:	4931:2f3a0055123e
branch:		adium-1.5.3
author:		Thijs Alkemade <thijsalkemade at gmail.com>
date:		Fri Jul 27 15:08:56 2012 +0200

Fix a couple of leaks in AIGradientView.

diffs (18 lines):

diff -r 1da981d1d4c6 -r 2f3a0055123e Source/AIGradientView.m
--- a/Source/AIGradientView.m	Fri Jul 27 12:31:32 2012 +0200
+++ b/Source/AIGradientView.m	Fri Jul 27 15:08:56 2012 +0200
@@ -41,10 +41,10 @@
 
 - (void)dealloc
 {
-	startingColor = nil;
-	middleColor = nil;
-	endingColor = nil;
-	backgroundColor = nil;
+	[startingColor release]; startingColor = nil;
+	[middleColor release]; middleColor = nil;
+	[endingColor release]; endingColor = nil;
+	[backgroundColor release]; backgroundColor = nil;
 	
 	[super dealloc];
 }




More information about the commits mailing list