aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPDatabaseDocument.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/SPDatabaseDocument.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/SPDatabaseDocument.m')
-rw-r--r--Source/SPDatabaseDocument.m2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/SPDatabaseDocument.m b/Source/SPDatabaseDocument.m
index 4f4deaca..7c7d2a39 100644
--- a/Source/SPDatabaseDocument.m
+++ b/Source/SPDatabaseDocument.m
@@ -1591,7 +1591,7 @@ static NSString *SPRenameDatabaseAction = @"SPRenameDatabase";
NSString *mysqlEncoding = [databaseDataInstance getDatabaseDefaultCharacterSet];
- [selectedDatabaseEncoding release];
+ [selectedDatabaseEncoding release], selectedDatabaseEncoding = nil;
// Fallback or older version? -> set encoding to mysql default encoding latin1
if (!mysqlEncoding) {