mirror of
https://github.com/nextcloud/desktop.git
synced 2024-10-24 13:25:52 +03:00
macOS: Fix memory leak in FolderWatcherPrivate::startWatching
Signed-off-by: Michael Schuster <michael@schuster.ms>
This commit is contained in:
parent
4b985ab3b3
commit
5979ae30e1
1 changed files with 1 additions and 0 deletions
|
@ -100,6 +100,7 @@ void FolderWatcherPrivate::startWatching()
|
||||||
kFSEventStreamCreateFlagUseCFTypes | kFSEventStreamCreateFlagFileEvents | kFSEventStreamCreateFlagIgnoreSelf);
|
kFSEventStreamCreateFlagUseCFTypes | kFSEventStreamCreateFlagFileEvents | kFSEventStreamCreateFlagIgnoreSelf);
|
||||||
|
|
||||||
CFRelease(pathsToWatch);
|
CFRelease(pathsToWatch);
|
||||||
|
CFRelease(folderCF);
|
||||||
FSEventStreamScheduleWithRunLoop(_stream, CFRunLoopGetCurrent(), kCFRunLoopDefaultMode);
|
FSEventStreamScheduleWithRunLoop(_stream, CFRunLoopGetCurrent(), kCFRunLoopDefaultMode);
|
||||||
FSEventStreamStart(_stream);
|
FSEventStreamStart(_stream);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue