Revision: 7511
http://skim-app.svn.sourceforge.net/skim-app/?rev=7511&view=rev
Author: hofman
Date: 2011-10-08 12:32:20 +0000 (Sat, 08 Oct 2011)
Log Message:
-----------
avoid autorelease
Modified Paths:
--------------
trunk/NSAttributedString_SKExtensions.m
Modified: trunk/NSAttributedString_SKExtensions.m
===================================================================
--- trunk/NSAttributedString_SKExtensions.m 2011-10-08 11:42:13 UTC (rev
7510)
+++ trunk/NSAttributedString_SKExtensions.m 2011-10-08 12:32:20 UTC (rev
7511)
@@ -94,9 +94,10 @@
- (void)setScriptingRTF:(id)data {
if (data) {
- NSAttributedString *attrString = [[[NSAttributedString alloc]
initWithData:data options:[NSDictionary dictionary] documentAttributes:NULL
error:NULL] autorelease];
+ NSAttributedString *attrString = [[NSAttributedString alloc]
initWithData:data options:[NSDictionary dictionary] documentAttributes:NULL
error:NULL];
if (attrString)
[self setAttributedString:attrString];
+ [attrString release];
}
}
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security
threats, fraudulent activity, and more. Splunk takes this data and makes
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2dcopy2
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit