aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPCSVParser.m
diff options
context:
space:
mode:
authorAbhi Beckert <abhi@Twist-of-Lemon-2.local>2015-05-16 08:06:06 +1000
committerAbhi Beckert <abhi@Twist-of-Lemon-2.local>2015-05-16 08:06:06 +1000
commit57a6f6c73bdaa202164645370d37fcbe5d14a092 (patch)
treedd30aa6156064f1d4c0e10ea87059625470fc2f9 /Source/SPCSVParser.m
parentb5e972f4504043dfb9c358e272e93fb59ae2127f (diff)
parent0f0c43eb74408b6a65a42e2c6fd46f4142ef8e3f (diff)
downloadsequelpro-57a6f6c73bdaa202164645370d37fcbe5d14a092.tar.gz
sequelpro-57a6f6c73bdaa202164645370d37fcbe5d14a092.tar.bz2
sequelpro-57a6f6c73bdaa202164645370d37fcbe5d14a092.zip
Merge remote-tracking branch 'sequelpro/master'
Diffstat (limited to 'Source/SPCSVParser.m')
-rw-r--r--Source/SPCSVParser.m26
1 files changed, 13 insertions, 13 deletions
diff --git a/Source/SPCSVParser.m b/Source/SPCSVParser.m
index 09d8c989..819c34b7 100644
--- a/Source/SPCSVParser.m
+++ b/Source/SPCSVParser.m
@@ -469,7 +469,7 @@
*/
- (void) setNullReplacementString:(NSString *)nullString
{
- if (nullReplacementString) [nullReplacementString release], nullReplacementString = nil;
+ if (nullReplacementString) SPClear(nullReplacementString);
if (nullString) nullReplacementString = [[NSString alloc] initWithString:nullString];
}
@@ -576,7 +576,7 @@
{
NSMutableString *charactersToSkip;
- if (skipCharacterSet) [skipCharacterSet release], skipCharacterSet = nil;
+ if (skipCharacterSet) SPClear(skipCharacterSet);
charactersToSkip = [[NSMutableString alloc] init];
if (![fieldEndString isEqualToString:@" "] && ![fieldQuoteString isEqualToString:@" "] && ![escapeString isEqualToString:@" "] && ![lineEndString isEqualToString:@" "])
@@ -650,17 +650,17 @@
return self;
}
- (void) dealloc {
- [csvString release];
- [fieldEndString release];
- [lineEndString release];
- [fieldQuoteString release];
- [escapeString release];
- [escapedFieldEndString release];
- [escapedLineEndString release];
- [escapedFieldQuoteString release];
- [escapedEscapeString release];
- if (nullReplacementString) [nullReplacementString release];
- if (skipCharacterSet) [skipCharacterSet release];
+ SPClear(csvString);
+ SPClear(fieldEndString);
+ SPClear(lineEndString);
+ SPClear(fieldQuoteString);
+ SPClear(escapeString);
+ SPClear(escapedFieldEndString);
+ SPClear(escapedLineEndString);
+ SPClear(escapedFieldQuoteString);
+ SPClear(escapedEscapeString);
+ if (nullReplacementString) SPClear(nullReplacementString);
+ if (skipCharacterSet) SPClear(skipCharacterSet);
[super dealloc];
}