mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-23 21:46:03 +03:00
Fixed a memory leak in FSEvents file system watcher
This commit is contained in:
parent
f7c075099b
commit
902de2dc93
1 changed files with 1 additions and 0 deletions
|
@ -70,6 +70,7 @@ void FolderWatcherPrivate::startWatching()
|
|||
kFSEventStreamCreateFlagNone+kFSEventStreamCreateFlagIgnoreSelf
|
||||
);
|
||||
|
||||
CFRelease(pathsToWatch);
|
||||
FSEventStreamScheduleWithRunLoop(stream, CFRunLoopGetCurrent(), kCFRunLoopDefaultMode);
|
||||
FSEventStreamStart(stream);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue