mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 03:11:18 +00:00
(-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:
parent
81c57842ad
commit
42504c3dd6
1 changed files with 2 additions and 0 deletions
|
@ -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];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue