aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPTableData.m
diff options
context:
space:
mode:
Diffstat (limited to 'Source/SPTableData.m')
-rw-r--r--Source/SPTableData.m29
1 files changed, 13 insertions, 16 deletions
diff --git a/Source/SPTableData.m b/Source/SPTableData.m
index 86243956..320a0b66 100644
--- a/Source/SPTableData.m
+++ b/Source/SPTableData.m
@@ -329,18 +329,15 @@
[status removeAllObjects];
if (triggers != nil) {
- [triggers release];
- triggers = nil;
+ SPClear(triggers);
}
if (tableEncoding != nil) {
- [tableEncoding release];
- tableEncoding = nil;
+ SPClear(tableEncoding);
}
if (tableCreateSyntax != nil) {
- [tableCreateSyntax release];
- tableCreateSyntax = nil;
+ SPClear(tableCreateSyntax);
}
}
@@ -1395,16 +1392,16 @@
*/
- (void)dealloc
{
- [columns release];
- [columnNames release];
- [constraints release];
- [status release];
- [primaryKeyColumns release];
-
- if (triggers) [triggers release];
- if (tableEncoding) [tableEncoding release];
- if (tableCreateSyntax) [tableCreateSyntax release];
- if (mySQLConnection) [mySQLConnection release];
+ SPClear(columns);
+ SPClear(columnNames);
+ SPClear(constraints);
+ SPClear(status);
+ SPClear(primaryKeyColumns);
+
+ if (triggers) SPClear(triggers);
+ if (tableEncoding) SPClear(tableEncoding);
+ if (tableCreateSyntax) SPClear(tableCreateSyntax);
+ if (mySQLConnection) SPClear(mySQLConnection);
pthread_mutex_destroy(&dataProcessingLock);