Revision: 15196
          http://bibdesk.svn.sourceforge.net/bibdesk/?rev=15196&view=rev
Author:   amaxwell
Date:     2009-04-26 17:40:41 +0000 (Sun, 26 Apr 2009)

Log Message:
-----------
fix leak

Modified Paths:
--------------
    trunk/bibdesk/NSString_BDSKExtensions.m

Modified: trunk/bibdesk/NSString_BDSKExtensions.m
===================================================================
--- trunk/bibdesk/NSString_BDSKExtensions.m     2009-04-26 09:46:04 UTC (rev 
15195)
+++ trunk/bibdesk/NSString_BDSKExtensions.m     2009-04-26 17:40:41 UTC (rev 
15196)
@@ -210,7 +210,7 @@
 
 + (NSString *)stringWithContentsOfFile:(NSString *)path 
encoding:(NSStringEncoding)encoding guessEncoding:(BOOL)try;
 {
-    return [[self alloc] initWithContentsOfFile:path encoding:encoding 
guessEncoding:try];
+    return [[[self alloc] initWithContentsOfFile:path encoding:encoding 
guessEncoding:try] autorelease];
 }
 
 + (NSString *)stringWithFileSystemRepresentation:(const char *)cstring;


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensign option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Bibdesk-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit

Reply via email to