From a92e84667f8bb480be4033c8149be0a2c65e6b90 Mon Sep 17 00:00:00 2001 From: richard Date: Wed, 9 Jun 1999 07:17:46 +0000 Subject: [PATCH] Fix retaoin/release problems git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@4378 72102866-910b-0410-8b05-ffd578937521 --- Source/NSApplication.m | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Source/NSApplication.m b/Source/NSApplication.m index 0c69ceaed..39057479b 100644 --- a/Source/NSApplication.m +++ b/Source/NSApplication.m @@ -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; }