aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPSQLParser.m
diff options
context:
space:
mode:
Diffstat (limited to 'Source/SPSQLParser.m')
-rw-r--r--Source/SPSQLParser.m7
1 files changed, 3 insertions, 4 deletions
diff --git a/Source/SPSQLParser.m b/Source/SPSQLParser.m
index a7a3ee98..d9bec2eb 100644
--- a/Source/SPSQLParser.m
+++ b/Source/SPSQLParser.m
@@ -790,8 +790,7 @@ TO_BUFFER_STATE to_scan_string (const char *);
// Drop back to standard non-delimiter mode if the delimiter has ended
if ([delimiter isEqualToString:[NSString stringWithFormat:@"%C", character]]) {
- if (delimiter) [delimiter release];
- delimiter = nil;
+ if (delimiter) SPClear(delimiter);
delimiterLengthMinusOne = 0;
}
@@ -1039,8 +1038,8 @@ TO_BUFFER_STATE to_scan_string (const char *);
[self _clearCharCache];
}
- (void) dealloc {
- [string release];
- if (delimiter) [delimiter release];
+ SPClear(string);
+ if (delimiter) SPClear(delimiter);
if (charCacheEnd != -1) free(stringCharCache);
[super dealloc];
}