summaryrefslogtreecommitdiffstats
path: root/macosx/tkMacOSXNotify.c
diff options
context:
space:
mode:
Diffstat (limited to 'macosx/tkMacOSXNotify.c')
-rw-r--r--macosx/tkMacOSXNotify.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/macosx/tkMacOSXNotify.c b/macosx/tkMacOSXNotify.c
index b400423..d35427a 100644
--- a/macosx/tkMacOSXNotify.c
+++ b/macosx/tkMacOSXNotify.c
@@ -223,8 +223,7 @@ TkMacOSXEventsSetupProc(
inMode:GetRunLoopMode(TkMacOSXGetModalSession())
dequeue:YES];
if (currentEvent) {
- tsdPtr->currentEvent =
- TkMacOSXMakeUncollectableAndRetain(currentEvent);
+ tsdPtr->currentEvent = [currentEvent retain];
}
}
if (tsdPtr->currentEvent) {
@@ -262,8 +261,8 @@ TkMacOSXEventsCheckProc(
TSD_INIT();
if (tsdPtr->currentEvent) {
- currentEvent = TkMacOSXMakeCollectableAndAutorelease(
- tsdPtr->currentEvent);
+ currentEvent = tsdPtr->currentEvent;
+ [currentEvent autorelease];
}
do {
modalSession = TkMacOSXGetModalSession();
@@ -277,9 +276,6 @@ TkMacOSXEventsCheckProc(
}
[currentEvent retain];
pool = [NSAutoreleasePool new];
- if (tkMacOSXGCEnabled) {
- objc_clear_stack(0);
- }
if (![NSApp tkProcessEvent:currentEvent]) {
[currentEvent release];
currentEvent = nil;