This now indicates a simple leak; quiet it down and move it into our debug logging
authorEvan Schoenberg
Sun, 28 Aug 2011 19:17:33 -0500
changeset 3629 354e4828e888
parent 3628 b702c5f10d91
child 3630 a331644b1ed4
This now indicates a simple leak; quiet it down and move it into our debug logging
(transplanted from 2fb1b4da6e8728c51887213164f3f3eb39bfa6d1)
Frameworks/Adium Framework/Source/AIProxyListObject.m
--- a/Frameworks/Adium Framework/Source/AIProxyListObject.m	Sat Aug 27 21:03:18 2011 +0200
+++ b/Frameworks/Adium Framework/Source/AIProxyListObject.m	Sun Aug 28 19:17:33 2011 -0500
@@ -48,10 +48,11 @@
 	proxy = [proxyDict objectForKey:key];
 
 	if (proxy && proxy.listObject != inListObject) {
-        /* This is a cataclysmic memory management failure and should NEVER happen. I leave the logging in for now. -evands 8/7/11 */
-		NSLog(@"Re-used AIProxyListObject (this should not happen.). Key %@ for inListObject %@ -> %p.listObject=%@", key,inListObject,proxy,proxy.listObject);
-		[self releaseProxyObject:proxy];
-		proxy = nil;
+        /* This is a memory management failure; AIContactController stopped tracking a list object, but it never deallocated. -evands 8/7/11 */
+		AILogWithSignature(@"%@ was leaked! Meh.", proxy.listObject);
+
+		proxy.listObject = inListObject;
+		proxy.containingObject = inContainingObject;
 	}
 
 	if (!proxy) {