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 Frith-MacDonald 1999-06-09 07:17:46 +00:00
parent 67beb8dac4
commit f45e0ebe43

View file

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