mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 13:20:47 +00:00
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:
parent
67beb8dac4
commit
f45e0ebe43
1 changed files with 1 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue