adium 2354:bc0882dfc625: Totally wrong place, kek.

commits at adium.im commits at adium.im
Thu May 28 02:05:13 UTC 2009


details:	http://hg.adium.im/adium/rev/bc0882dfc625
revision:	2354:bc0882dfc625
author:		Zachary West <zacw at adium.im>
date:		Wed May 27 22:05:03 2009 -0400

Totally wrong place, kek.

diffstat:

 Frameworks/AIUtilities Framework/Source/AIProgressDataUploader.m |  3 ++-
 Plugins/Image Uploading Plugin/AIImageUploaderPlugin.m           |  7 ++++++-
 2 files changed, 8 insertions(+), 2 deletions(-)

diffs (41 lines):

diff -r 78640083f2e8 -r bc0882dfc625 Frameworks/AIUtilities Framework/Source/AIProgressDataUploader.m
--- a/Frameworks/AIUtilities Framework/Source/AIProgressDataUploader.m	Wed May 27 21:46:23 2009 -0400
+++ b/Frameworks/AIUtilities Framework/Source/AIProgressDataUploader.m	Wed May 27 22:05:03 2009 -0400
@@ -60,7 +60,7 @@
 		   context:(id)inContext
 {
 	if ((self = [super init])) {
-		uploadData = inUploadData;
+		uploadData = [inUploadData retain];
 		delegate = inDelegate;
 		context = inContext;
 		url = [inURL retain];
@@ -74,6 +74,7 @@
 {
 	[url release];
 	[headers release];
+	[uploadData release];
 	[returnedData release];
 	
 	[super dealloc];
diff -r 78640083f2e8 -r bc0882dfc625 Plugins/Image Uploading Plugin/AIImageUploaderPlugin.m
--- a/Plugins/Image Uploading Plugin/AIImageUploaderPlugin.m	Wed May 27 21:46:23 2009 -0400
+++ b/Plugins/Image Uploading Plugin/AIImageUploaderPlugin.m	Wed May 27 22:05:03 2009 -0400
@@ -67,11 +67,16 @@
 - (void)uninstallPlugin
 {
 	[adium.preferenceController unregisterPreferenceObserver:self];
-	
+}
+
+- (void)dealloc
+{
 	[defaultService release];
 	[windowControllers release];
 	[uploadInstances release];
 	[uploaders release];
+	
+	[super dealloc];
 }
 
 #pragma mark Preferences




More information about the commits mailing list