mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-31 20:40: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
ba5f43a515
commit
a92e84667f
1 changed files with 1 additions and 3 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue