From 6a9e12b0bc9600fa3a0b878b74854e5ef29964bb Mon Sep 17 00:00:00 2001 From: rowanbeentje Date: Sun, 1 Nov 2009 16:22:00 +0000 Subject: - Fix a crash when opening .spfs caused by an autorelease - revert to manual memory management instead of r1455 approach, but fix leaks - Fix an exception caused by closing .spf windows while "Connecting..." windows were open --- Source/SPQueryController.m | 1 + 1 file changed, 1 insertion(+) (limited to 'Source/SPQueryController.m') diff --git a/Source/SPQueryController.m b/Source/SPQueryController.m index 422e1f59..8d38e72f 100644 --- a/Source/SPQueryController.m +++ b/Source/SPQueryController.m @@ -509,6 +509,7 @@ static SPQueryController *sharedQueryController = nil; NSArray *allDocs = [[NSDocumentController sharedDocumentController] documents]; NSMutableArray *allURLs = [NSMutableArray array]; for(id doc in allDocs) { + if (![doc fileURL]) continue; if([allURLs containsObject:[doc fileURL]]) return; else -- cgit v1.2.3