adium 3243:98f7fa4b4d26: Close chats when they aren't open and n...

commits at adium.im commits at adium.im
Wed Jun 23 09:54:51 UTC 2010


details:	http://hg.adium.im/adium/rev/98f7fa4b4d26
revision:	3243:98f7fa4b4d26
author:		Thijs Alkemade <thijsalkemade at gmail.com>
date:		Mon May 31 19:31:54 2010 +0200

Close chats when they aren't open and not going to display anything, to prevent leaking NickServs etc.

Fixes #13968

diffs (15 lines):

diff -r baccda5d58e9 -r 98f7fa4b4d26 Source/AIContentController.m
--- a/Source/AIContentController.m	Tue Jun 22 12:35:57 2010 -0700
+++ b/Source/AIContentController.m	Mon May 31 19:31:54 2010 +0200
@@ -564,6 +564,11 @@
 
 	//We are no longer in the process of receiving this object
 	[objectsBeingReceived removeObject:inObject];
+	
+	if (![inObject displayContent] && ![inObject.chat isOpen]) {
+		// chat wasn't open, so close it so it doesn't leak
+		[adium.interfaceController closeChat:inObject.chat];
+	}
 }
 
 #pragma mark -




More information about the commits mailing list