Fix retaoin/release problems

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@4378 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
richard 1999-06-09 07:17:46 +00:00
parent ba5f43a515
commit a92e84667f

View file

@ -449,7 +449,6 @@ NSApplication *NSApp = nil;
DPSPostEvent(ctxt, event, YES); DPSPostEvent(ctxt, event, YES);
found = YES; found = YES;
} }
RELEASE(event);
} }
while (found == NO && theSession->runState == NSRunContinuesResponse); while (found == NO && theSession->runState == NSRunContinuesResponse);
@ -461,7 +460,7 @@ NSApplication *NSApp = nil;
{ {
pool = [NSAutoreleasePool new]; pool = [NSAutoreleasePool new];
event = DPSGetEvent(ctxt, NSAnyEventMask, nil, NSDefaultRunLoopMode); event = DPSGetEvent(ctxt, NSAnyEventMask, limit, NSDefaultRunLoopMode);
if (event != nil && [event window] == theSession->window) if (event != nil && [event window] == theSession->window)
{ {
ASSIGN(current_event, event); ASSIGN(current_event, event);
@ -469,7 +468,6 @@ NSApplication *NSApp = nil;
} }
else else
{ {
RELEASE(event);
found = NO; found = NO;
} }