mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 15:11:37 +00:00
Fixed memory leaks in editing
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@7513 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
05a9cab8f7
commit
d2966c95a3
1 changed files with 5 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue