mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-24 05:55:59 +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
|
kFSEventStreamCreateFlagNone+kFSEventStreamCreateFlagIgnoreSelf
|
||||||
);
|
);
|
||||||
|
|
||||||
|
CFRelease(pathsToWatch);
|
||||||
FSEventStreamScheduleWithRunLoop(stream, CFRunLoopGetCurrent(), kCFRunLoopDefaultMode);
|
FSEventStreamScheduleWithRunLoop(stream, CFRunLoopGetCurrent(), kCFRunLoopDefaultMode);
|
||||||
FSEventStreamStart(stream);
|
FSEventStreamStart(stream);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue