diff options
Diffstat (limited to 'Source/SPDataImport.m')
-rw-r--r-- | Source/SPDataImport.m | 19 |
1 files changed, 8 insertions, 11 deletions
diff --git a/Source/SPDataImport.m b/Source/SPDataImport.m index 629dde25..f350ae0f 100644 --- a/Source/SPDataImport.m +++ b/Source/SPDataImport.m @@ -1759,17 +1759,14 @@ cleanup: */ - (void)_importBackgroundProcess:(NSDictionary *)userInfo { - NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; - NSString *filename = [userInfo objectForKey:@"filename"]; - NSString *fileType = [userInfo objectForKey:@"fileType"]; - - // Use the appropriate processing function for the file type - if ([fileType isEqualToString:@"SQL"]) - [self importSQLFile:filename]; - else if ([fileType isEqualToString:@"CSV"]) - [self importCSVFile:filename]; - - [pool release]; + @autoreleasepool { + NSString *filename = [userInfo objectForKey:@"filename"]; + NSString *fileType = [userInfo objectForKey:@"fileType"]; + + // Use the appropriate processing function for the file type + if ([fileType isEqualToString:@"SQL"]) [self importSQLFile:filename]; + else if ([fileType isEqualToString:@"CSV"]) [self importCSVFile:filename]; + } } /** |