aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPDatabaseStructure.m
diff options
context:
space:
mode:
Diffstat (limited to 'Source/SPDatabaseStructure.m')
-rw-r--r--Source/SPDatabaseStructure.m5
1 files changed, 2 insertions, 3 deletions
diff --git a/Source/SPDatabaseStructure.m b/Source/SPDatabaseStructure.m
index b34522c5..2eab3562 100644
--- a/Source/SPDatabaseStructure.m
+++ b/Source/SPDatabaseStructure.m
@@ -567,7 +567,7 @@
[[NSNotificationCenter defaultCenter] removeObserver:self];
[self destroy:nil];
- [structureRetrievalThreads release];
+ SPClear(structureRetrievalThreads);
pthread_mutex_destroy(&threadManagementLock);
pthread_mutex_destroy(&dataLock);
@@ -630,8 +630,7 @@
}
pthread_mutex_unlock(&threadManagementLock);
- [mySQLConnection release];
- mySQLConnection = nil;
+ SPClear(mySQLConnection);
}
// Create a copy of the supplied connection