aboutsummaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorrowanbeentje <rowan@beent.je>2010-04-13 23:17:10 +0000
committerrowanbeentje <rowan@beent.je>2010-04-13 23:17:10 +0000
commit3bcf3a1e6e1f6c8649c81cfd545274b0f62dcfa9 (patch)
tree7d452f8e449cd39ed1d57440ab11a33c7d7890ad /Source
parent52c04d944a0364ba043f9fe82f4c5c85928f99f6 (diff)
downloadsequelpro-3bcf3a1e6e1f6c8649c81cfd545274b0f62dcfa9.tar.gz
sequelpro-3bcf3a1e6e1f6c8649c81cfd545274b0f62dcfa9.tar.bz2
sequelpro-3bcf3a1e6e1f6c8649c81cfd545274b0f62dcfa9.zip
- Wrap TableContent's loadTableValues in an autorelease pool; this fixes connection locking issues, addressing Issue #634
Diffstat (limited to 'Source')
-rw-r--r--Source/TableContent.m5
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/TableContent.m b/Source/TableContent.m
index 38636326..ff3838ae 100644
--- a/Source/TableContent.m
+++ b/Source/TableContent.m
@@ -550,6 +550,9 @@
// If no table is selected, return
if (!selectedTable) return;
+ // Wrap the values load in an autorelease pool to ensure full and timely release
+ NSAutoreleasePool *loadPool = [[NSAutoreleasePool alloc] init];
+
NSMutableString *queryString;
NSString *queryStringBeforeLimit = nil;
NSString *filterString;
@@ -670,6 +673,8 @@
// Trigger a full reload if required
if (fullTableReloadRequired) [self reloadTable:self];
+
+ [loadPool drain];
}
/*