From e2f36ca28ff107844a2ba6951ea6fb597004e67a Mon Sep 17 00:00:00 2001 From: alexm Date: Sun, 30 Mar 2003 17:24:47 +0000 Subject: [PATCH] (-trackKnob:): Wrap each iteration in an autorelease pool. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@16297 72102866-910b-0410-8b05-ffd578937521 --- Source/NSScroller.m | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Source/NSScroller.m b/Source/NSScroller.m index 2816f3a12..5cf28714f 100644 --- a/Source/NSScroller.m +++ b/Source/NSScroller.m @@ -620,6 +620,7 @@ static NSColor *scrollBarColor = nil; while ((eventType = [theEvent type]) != NSLeftMouseUp) { + CREATE_AUTORELEASE_POOL(arp); if (eventType != NSPeriodic) { apoint = [theEvent locationInWindow]; @@ -663,6 +664,7 @@ static NSColor *scrollBarColor = nil; untilDate: theDistantFuture inMode: NSEventTrackingRunLoopMode dequeue: YES]; + DESTROY(arp); } [NSEvent stopPeriodicEvents]; }