(-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
This commit is contained in:
Alexander Malmberg 2003-03-30 17:24:47 +00:00
parent 81c57842ad
commit 42504c3dd6

View file

@ -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];
}