mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-27 09:30:13 +03:00
Merge pull request #2497 from nextcloud/fix/mac-folderwatcher-memory-leak
macOS: Fix memory leak in FolderWatcherPrivate::startWatching
This commit is contained in:
commit
a0b351b145
3 changed files with 1 additions and 0 deletions
0
src/gui/folderman.cpp
Executable file → Normal file
0
src/gui/folderman.cpp
Executable file → Normal file
1
src/gui/folderwatcher_mac.cpp
Executable file → Normal file
1
src/gui/folderwatcher_mac.cpp
Executable file → Normal file
|
@ -100,6 +100,7 @@ void FolderWatcherPrivate::startWatching()
|
|||
kFSEventStreamCreateFlagUseCFTypes | kFSEventStreamCreateFlagFileEvents | kFSEventStreamCreateFlagIgnoreSelf);
|
||||
|
||||
CFRelease(pathsToWatch);
|
||||
CFRelease(folderCF);
|
||||
FSEventStreamScheduleWithRunLoop(_stream, CFRunLoopGetCurrent(), kCFRunLoopDefaultMode);
|
||||
FSEventStreamStart(_stream);
|
||||
}
|
||||
|
|
0
src/gui/folderwatcher_mac.h
Executable file → Normal file
0
src/gui/folderwatcher_mac.h
Executable file → Normal file
Loading…
Reference in a new issue