From 69c368da27ef8930ac7747068ce78e81d318bf6f Mon Sep 17 00:00:00 2001 From: nico Date: Thu, 14 Sep 2000 11:43:20 +0000 Subject: [PATCH] Fixed memory leaks in editing git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@7513 72102866-910b-0410-8b05-ffd578937521 --- Source/NSMatrix.m | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Source/NSMatrix.m b/Source/NSMatrix.m index 183a70246..ab99eb3b3 100644 --- a/Source/NSMatrix.m +++ b/Source/NSMatrix.m @@ -1311,6 +1311,7 @@ static SEL getSel = @selector(objectAtIndex:); d = [[NSMutableDictionary alloc] initWithDictionary: [aNotification userInfo]]; + AUTORELEASE (d); [d setObject: [aNotification object] forKey: @"NSFieldEditor"]; [nc postNotificationName: NSControlTextDidBeginEditingNotification object: self @@ -1329,6 +1330,7 @@ static SEL getSel = @selector(objectAtIndex:); d = [[NSMutableDictionary alloc] initWithDictionary: [aNotification userInfo]]; + AUTORELEASE (d); [d setObject: [aNotification object] forKey: @"NSFieldEditor"]; [nc postNotificationName: NSControlTextDidChangeNotification @@ -1385,7 +1387,9 @@ static SEL getSel = @selector(objectAtIndex:); [self validateEditing]; - d = [[NSMutableDictionary alloc] initWithDictionary: [aNotification userInfo]]; + d = [[NSMutableDictionary alloc] initWithDictionary: + [aNotification userInfo]]; + AUTORELEASE (d); [d setObject: [aNotification object] forKey: @"NSFieldEditor"]; [nc postNotificationName: NSControlTextDidEndEditingNotification object: self