diff options
author | rowanbeentje <rowan@beent.je> | 2009-12-04 15:44:51 +0000 |
---|---|---|
committer | rowanbeentje <rowan@beent.je> | 2009-12-04 15:44:51 +0000 |
commit | 11eca30d1b8abf87575bb59ef3f1a7e2478ab21a (patch) | |
tree | fd3ae5ba66229cea5fce9bd3881715cdc7b79590 /Source/SPFieldEditorController.m | |
parent | 3a289007e40603f724d27f8ca0824075ad005e79 (diff) | |
download | sequelpro-11eca30d1b8abf87575bb59ef3f1a7e2478ab21a.tar.gz sequelpro-11eca30d1b8abf87575bb59ef3f1a7e2478ab21a.tar.bz2 sequelpro-11eca30d1b8abf87575bb59ef3f1a7e2478ab21a.zip |
- Fix saving of files or images added to the SPFieldEditor
- Fix a couple of memory leaks in the SPFieldEditor
- Fix a crash caused by attempted reselection of databases after disconnection if no database was selected
Diffstat (limited to 'Source/SPFieldEditorController.m')
-rw-r--r-- | Source/SPFieldEditorController.m | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/SPFieldEditorController.m b/Source/SPFieldEditorController.m index 4df767f4..ed10dbf1 100644 --- a/Source/SPFieldEditorController.m +++ b/Source/SPFieldEditorController.m @@ -103,7 +103,7 @@ [qlTypesItems addObject:type]; } } - qlTypes = [NSDictionary dictionaryWithObject:[qlTypesItems retain] forKey:SPQuickLookTypes]; + qlTypes = [NSDictionary dictionaryWithObject:qlTypesItems forKey:SPQuickLookTypes]; [qlTypesItems release]; } return self; @@ -324,7 +324,7 @@ // Remember spell cheecker status [prefs setBool:[editTextView isContinuousSpellCheckingEnabled] forKey:SPBlobTextEditorSpellCheckingEnabled]; - return ( editSheetReturnCode && isEditable ) ? [sheetEditData retain] : nil; + return ( editSheetReturnCode && isEditable ) ? sheetEditData : nil; } /* |