aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPFieldEditorController.m
diff options
context:
space:
mode:
authorrowanbeentje <rowan@beent.je>2010-03-15 00:15:23 +0000
committerrowanbeentje <rowan@beent.je>2010-03-15 00:15:23 +0000
commit5a6d0f17bbf6b09463b908182dc2cbb112a0c6cb (patch)
tree4eb9575d7de321fc6f454892d0df13ddc4b6ce39 /Source/SPFieldEditorController.m
parent927784129ffd4d30e35f92a3fe6a8582219c64db (diff)
downloadsequelpro-5a6d0f17bbf6b09463b908182dc2cbb112a0c6cb.tar.gz
sequelpro-5a6d0f17bbf6b09463b908182dc2cbb112a0c6cb.tar.bz2
sequelpro-5a6d0f17bbf6b09463b908182dc2cbb112a0c6cb.zip
Following a manual code review, fix some local variables overriding global variables, a few leaks, and additional nil setting/checking to prevent overreleases or releases of random areas of memory.
Diffstat (limited to 'Source/SPFieldEditorController.m')
-rw-r--r--Source/SPFieldEditorController.m3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/SPFieldEditorController.m b/Source/SPFieldEditorController.m
index 7b52bbf8..2db46a10 100644
--- a/Source/SPFieldEditorController.m
+++ b/Source/SPFieldEditorController.m
@@ -43,6 +43,7 @@
(void) [self window];
counter = 0;
maxTextLength = 0;
+ stringValue = nil;
prefs = [NSUserDefaults standardUserDefaults];
@@ -262,7 +263,7 @@
else
[editSheet makeFirstResponder:editImage];
- [stringValue release];
+ [stringValue release], stringValue = nil;
}
editSheetWillBeInitialized = NO;