mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-23 13:35:58 +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);
|
||||
|
||||
CFRelease(pathsToWatch);
|
||||
CFRelease(folderCF);
|
||||
FSEventStreamScheduleWithRunLoop(_stream, CFRunLoopGetCurrent(), kCFRunLoopDefaultMode);
|
||||
FSEventStreamStart(_stream);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue