adium 5049:19f59503d22d: Fix an ARC crash when parsing chat logs.

commits at adium.im commits at adium.im
Tue Sep 11 22:49:54 UTC 2012


details:	http://hg.adium.im/adium/rev/19f59503d22d
revision:	5049:19f59503d22d
branch:		(none)
author:		Thijs Alkemade <thijsalkemade at gmail.com>
date:		Wed Sep 12 00:49:10 2012 +0200

Fix an ARC crash when parsing chat logs.

diffs (12 lines):

diff -r 6958e72cf596 -r 19f59503d22d Other/Adium Spotlight Importer/GetMetadataForFile.m
--- a/Other/Adium Spotlight Importer/GetMetadataForFile.m	Sun Sep 09 12:24:39 2012 -0400
+++ b/Other/Adium Spotlight Importer/GetMetadataForFile.m	Wed Sep 12 00:49:10 2012 +0200
@@ -134,7 +134,7 @@
 	} else if (CFEqual(contentTypeUTI, CFSTR("com.adiumx.xmllog"))) {
         result = CopyTextContentForXMLLogData(fileData);
     }
-    return (__bridge CFStringRef)result;
+    return CFBridgingRetain(result);
 }
 
 /*!




More information about the commits mailing list