diff options
author | rowanbeentje <rowan@beent.je> | 2010-04-13 23:17:10 +0000 |
---|---|---|
committer | rowanbeentje <rowan@beent.je> | 2010-04-13 23:17:10 +0000 |
commit | 3bcf3a1e6e1f6c8649c81cfd545274b0f62dcfa9 (patch) | |
tree | 7d452f8e449cd39ed1d57440ab11a33c7d7890ad /Source/TableContent.m | |
parent | 52c04d944a0364ba043f9fe82f4c5c85928f99f6 (diff) | |
download | sequelpro-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/TableContent.m')
-rw-r--r-- | Source/TableContent.m | 5 |
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]; } /* |