aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPDatabaseData.m
diff options
context:
space:
mode:
authorrowanbeentje <rowan@beent.je>2012-06-11 14:22:32 +0000
committerrowanbeentje <rowan@beent.je>2012-06-11 14:22:32 +0000
commit343dc13be9aadb459444b648916e859ec5b18b9b (patch)
treec4e1f1a075dde85175af11d70b3bb247efa8d2fd /Source/SPDatabaseData.m
parent2919f39e402aa7219958454ca0da452af3e163e9 (diff)
downloadsequelpro-343dc13be9aadb459444b648916e859ec5b18b9b.tar.gz
sequelpro-343dc13be9aadb459444b648916e859ec5b18b9b.tar.bz2
sequelpro-343dc13be9aadb459444b648916e859ec5b18b9b.zip
- Retain the new SPDatabaseData defaultCharacterSetEncoding when created, fixing overrelease crashing on exit
Diffstat (limited to 'Source/SPDatabaseData.m')
-rw-r--r--Source/SPDatabaseData.m2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/SPDatabaseData.m b/Source/SPDatabaseData.m
index a49248d1..4c99b97e 100644
--- a/Source/SPDatabaseData.m
+++ b/Source/SPDatabaseData.m
@@ -299,7 +299,7 @@ NSInteger _sortStorageEngineEntry(NSDictionary *itemOne, NSDictionary *itemTwo,
[result setReturnDataAsStrings:YES];
- defaultCharacterSetEncoding = [[result getRowAsDictionary] objectForKey:@"Value"];
+ defaultCharacterSetEncoding = [[[result getRowAsDictionary] objectForKey:@"Value"] retain];
}
return defaultCharacterSetEncoding;