diff options
author | rowanbeentje <rowan@beent.je> | 2009-11-01 16:22:00 +0000 |
---|---|---|
committer | rowanbeentje <rowan@beent.je> | 2009-11-01 16:22:00 +0000 |
commit | 6a9e12b0bc9600fa3a0b878b74854e5ef29964bb (patch) | |
tree | 58a7d1a43223b4bbb417750f4e8793af8992e5c3 /Source/SPQueryController.m | |
parent | 99ddc3164f3e7da15bf65e663a939e9d7009fcd4 (diff) | |
download | sequelpro-6a9e12b0bc9600fa3a0b878b74854e5ef29964bb.tar.gz sequelpro-6a9e12b0bc9600fa3a0b878b74854e5ef29964bb.tar.bz2 sequelpro-6a9e12b0bc9600fa3a0b878b74854e5ef29964bb.zip |
- 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
Diffstat (limited to 'Source/SPQueryController.m')
-rw-r--r-- | Source/SPQueryController.m | 1 |
1 files changed, 1 insertions, 0 deletions
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 |