In what must be the longest standing leak in the history of Adium, we weren't releasing the view heirarchy owned by AIMessageViewController (since it loads it with itself as owner from the nib in its init method). This, in turn, made every AIChat leak, since AIMessageTextEntryView retains its AIChat...
authorEvan Schoenberg
Sun, 21 Aug 2011 15:50:25 -0500
changeset 3611 85165a4ab9cb
parent 3610 93c8292bc1c8
child 3612 b01904677149
In what must be the longest standing leak in the history of Adium, we weren't releasing the view heirarchy owned by AIMessageViewController (since it loads it with itself as owner from the nib in its init method). This, in turn, made every AIChat leak, since AIMessageTextEntryView retains its AIChat...
(transplanted from db9fbeb2372ee2b90d41e21796aa4a1bf1dd826d)
Plugins/Dual Window Interface/AIMessageViewController.m
--- a/Plugins/Dual Window Interface/AIMessageViewController.m	Sun Aug 21 15:14:33 2011 -0500
+++ b/Plugins/Dual Window Interface/AIMessageViewController.m	Sun Aug 21 15:50:25 2011 -0500
@@ -226,7 +226,7 @@
 	}
 	//release menuItem
 	[showHide release];
-	
+	[view_contents release]; view_contents = nil;
 	[undoManager release]; undoManager = nil;
 
     [super dealloc];