Revision: 2876
http://skim-app.svn.sourceforge.net/skim-app/?rev=2876&view=rev
Author: hofman
Date: 2007-09-10 03:21:56 -0700 (Mon, 10 Sep 2007)
Log Message:
-----------
Retain and autorelease the appcast URL in the local pool. Don't know if that
prevents a crash.
Modified Paths:
--------------
trunk/vendorsrc/andymatuschak/Sparkle/SUAppcast.m
Modified: trunk/vendorsrc/andymatuschak/Sparkle/SUAppcast.m
===================================================================
--- trunk/vendorsrc/andymatuschak/Sparkle/SUAppcast.m 2007-09-10 00:19:59 UTC
(rev 2875)
+++ trunk/vendorsrc/andymatuschak/Sparkle/SUAppcast.m 2007-09-10 10:21:56 UTC
(rev 2876)
@@ -43,7 +43,7 @@
NSAutoreleasePool* pool = [[NSAutoreleasePool alloc] init];
NSError *error = nil;
- NSURLRequest *request = [NSURLRequest requestWithURL:url
cachePolicy:NSURLRequestReloadIgnoringCacheData timeoutInterval:60.0];
+ NSURLRequest *request = [NSURLRequest requestWithURL:[[url retain]
autorelease] cachePolicy:NSURLRequestReloadIgnoringCacheData
timeoutInterval:60.0];
NSURLResponse *response = nil;
NSData *data = [NSURLConnection sendSynchronousRequest:request
returningResponse:&response error:&error];
NSXMLDocument *document = nil;
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit