Fix leak of dictionary object.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@17488 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Adam Fedor 2003-08-18 03:47:42 +00:00
parent 1f8c6011b3
commit db304032af
2 changed files with 41 additions and 4 deletions

View file

@ -5605,8 +5605,8 @@ byExtendingSelection: (BOOL)flag
{
NSMutableDictionary *d;
d = [[NSMutableDictionary alloc] initWithDictionary:
[aNotification userInfo]];
d = [NSMutableDictionary dictionaryWithDictionary:
[aNotification userInfo]];
[d setObject: [aNotification object] forKey: @"NSFieldEditor"];
[nc postNotificationName: NSControlTextDidBeginEditingNotification
object: self
@ -5622,7 +5622,7 @@ byExtendingSelection: (BOOL)flag
@selector(textDidChange:)])
[_editedCell textDidChange: aNotification];
d = [[NSMutableDictionary alloc] initWithDictionary:
d = [NSMutableDictionary dictionaryWithDictionary:
[aNotification userInfo]];
[d setObject: [aNotification object] forKey: @"NSFieldEditor"];
[nc postNotificationName: NSControlTextDidChangeNotification
@ -5651,7 +5651,7 @@ byExtendingSelection: (BOOL)flag
_editedColumn = -1;
_editedRow = -1;
d = [[NSMutableDictionary alloc] initWithDictionary:
d = [NSMutableDictionary dictionaryWithDictionary:
[aNotification userInfo]];
[d setObject: [aNotification object] forKey: @"NSFieldEditor"];
[nc postNotificationName: NSControlTextDidEndEditingNotification