diff options
author | rowanbeentje <rowan@beent.je> | 2013-02-19 01:09:30 +0000 |
---|---|---|
committer | rowanbeentje <rowan@beent.je> | 2013-02-19 01:09:30 +0000 |
commit | 36fa01d0c98481af4b6a17061ac94c0a5a0186fe (patch) | |
tree | ef00c32dec151845f89b4d682847b71b7b393082 /Source/SPFavoritesImporter.m | |
parent | f7f5013b74e890c743482a3f6bb5dd36690a36da (diff) | |
download | sequelpro-36fa01d0c98481af4b6a17061ac94c0a5a0186fe.tar.gz sequelpro-36fa01d0c98481af4b6a17061ac94c0a5a0186fe.tar.bz2 sequelpro-36fa01d0c98481af4b6a17061ac94c0a5a0186fe.zip |
- Fix crashes when importing favorites on the connection view, addressing Issue #1556
- Select and scroll to newly created favorites after import
Diffstat (limited to 'Source/SPFavoritesImporter.m')
-rw-r--r-- | Source/SPFavoritesImporter.m | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/Source/SPFavoritesImporter.m b/Source/SPFavoritesImporter.m index f33e1705..bb027104 100644 --- a/Source/SPFavoritesImporter.m +++ b/Source/SPFavoritesImporter.m @@ -73,12 +73,10 @@ NSFileManager *fileManager = [NSFileManager defaultManager]; if ([fileManager fileExistsAtPath:[self importPath]]) { - importData = [[NSDictionary alloc] initWithContentsOfFile:[self importPath]]; + importData = [[[NSDictionary alloc] initWithContentsOfFile:[self importPath]] autorelease]; NSArray *favorites = [importData valueForKey:SPFavoritesDataRootKey]; - [importData release]; - if (favorites) { [self _informDelegateOfImportDataAvailable:favorites]; } |