Browse Source

Cleanup

tags/v2.4.1
falkTX 3 years ago
parent
commit
d8fcba6fad
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      source/utils/CarlaMainLoop.hpp

+ 3
- 2
source/utils/CarlaMainLoop.hpp View File

@@ -33,14 +33,15 @@ static inline
bool runMainLoopOnce()
{
#if defined(CARLA_OS_MAC)
NSAutoreleasePool* pool = [[NSAutoreleasePool alloc] init];
NSAutoreleasePool* const pool = [[NSAutoreleasePool alloc] init];
NSDate* const date = [NSDate distantPast];
NSEvent* event;

for (;;)
{
event = [NSApp
nextEventMatchingMask:NSAnyEventMask
untilDate:[NSDate distantPast]
untilDate:date
inMode:NSDefaultRunLoopMode
dequeue:YES];



Loading…
Cancel
Save