Fixed a memory leak in FSEvents file system watcher

This commit is contained in:
Denis Dzyubenko 2014-02-17 22:35:54 +01:00
parent f7c075099b
commit 902de2dc93

View file

@ -70,6 +70,7 @@ void FolderWatcherPrivate::startWatching()
kFSEventStreamCreateFlagNone+kFSEventStreamCreateFlagIgnoreSelf kFSEventStreamCreateFlagNone+kFSEventStreamCreateFlagIgnoreSelf
); );
CFRelease(pathsToWatch);
FSEventStreamScheduleWithRunLoop(stream, CFRunLoopGetCurrent(), kCFRunLoopDefaultMode); FSEventStreamScheduleWithRunLoop(stream, CFRunLoopGetCurrent(), kCFRunLoopDefaultMode);
FSEventStreamStart(stream); FSEventStreamStart(stream);
} }