aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPExportController.m
diff options
context:
space:
mode:
Diffstat (limited to 'Source/SPExportController.m')
-rw-r--r--Source/SPExportController.m6
1 files changed, 4 insertions, 2 deletions
diff --git a/Source/SPExportController.m b/Source/SPExportController.m
index c1e72b8a..caa504e7 100644
--- a/Source/SPExportController.m
+++ b/Source/SPExportController.m
@@ -449,8 +449,8 @@
[errors appendString:[NSString stringWithFormat:@"%@\n", [connection getLastErrorMessage]]];
}
- SPExporter *exporter;
- SPCSVExporter *csvExporter;
+ SPExporter *exporter = nil;
+ SPCSVExporter *csvExporter = nil;
// Based on the type of export create a new instance of the corresponding exporter and set it's specific options
switch (type)
@@ -508,6 +508,8 @@
// maximum number of concurrent operations. See the docs for more details.
[operationQueue addOperation:exporter];
+ if (csvExporter) [csvExporter release];
+
// Add a spacer to the file
//[fileHandle writeData:[[NSString stringWithFormat:@"%@%@%@", csvLineEnd, csvLineEnd, csvLineEnd] dataUsingEncoding:encoding]];
}