diff options
author | stuconnolly <stuart02@gmail.com> | 2010-05-26 15:05:48 +0000 |
---|---|---|
committer | stuconnolly <stuart02@gmail.com> | 2010-05-26 15:05:48 +0000 |
commit | f36df95c5c983e255f9c4ab79b76c3e4a132a974 (patch) | |
tree | 2d9b61735f9d1c3c9c1b0a59cee5cd3e6ed0d8f9 /Source/SPExportInitializer.m | |
parent | 64307838194fd153b88df82156a7fad3ff68de4c (diff) | |
download | sequelpro-f36df95c5c983e255f9c4ab79b76c3e4a132a974.tar.gz sequelpro-f36df95c5c983e255f9c4ab79b76c3e4a132a974.tar.bz2 sequelpro-f36df95c5c983e255f9c4ab79b76c3e4a132a974.zip |
Data export fixes:
- Fix the same potential autorelease pool memory leak found in the CSV exporter in the XML exporter.
- When performing an XML export to a single file don't write the header twice.
- Remember to append the .xml extension when performing an XML export to a single file.
Diffstat (limited to 'Source/SPExportInitializer.m')
-rw-r--r-- | Source/SPExportInitializer.m | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/Source/SPExportInitializer.m b/Source/SPExportInitializer.m index 0ceccbd6..20b38c5e 100644 --- a/Source/SPExportInitializer.m +++ b/Source/SPExportInitializer.m @@ -355,9 +355,6 @@ } singleFileHandle = [self getFileHandleForFilePath:[[exportPathField stringValue] stringByAppendingPathComponent:[filename stringByAppendingPathExtension:@"xml"]]]; - - // Write the file header - [self writeXMLHeaderToFileHandle:singleFileHandle]; } // Start the export process depending on the data source @@ -541,7 +538,7 @@ if ((exportSource == SPTableExport) && exportToMultipleFiles && (exportTableCount > 0)) { filename = [[exportPathField stringValue] stringByAppendingPathComponent:table]; - fileHandle = [self getFileHandleForFilePath:filename]; + fileHandle = [self getFileHandleForFilePath:[filename stringByAppendingPathExtension:@"xml"]]; // Write the file header [self writeXMLHeaderToFileHandle:fileHandle]; |