diff options
author | Max <post@wickenrode.com> | 2015-01-04 21:15:43 +0100 |
---|---|---|
committer | Max <post@wickenrode.com> | 2015-01-04 21:15:43 +0100 |
commit | e201531daa71ee1a2e2a0f927c619947126c9d3d (patch) | |
tree | 9b43cecf579b4318ec9b8f04c970a40c3232ba15 /Source/SPSQLParser.m | |
parent | 5b55d8c4d24b0c24a5dc74a49cfd70448146d582 (diff) | |
download | sequelpro-e201531daa71ee1a2e2a0f927c619947126c9d3d.tar.gz sequelpro-e201531daa71ee1a2e2a0f927c619947126c9d3d.tar.bz2 sequelpro-e201531daa71ee1a2e2a0f927c619947126c9d3d.zip |
Addition to commit 2735e15b
Diffstat (limited to 'Source/SPSQLParser.m')
-rw-r--r-- | Source/SPSQLParser.m | 7 |
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]; } |