diff options
author | Michael Schuster <michael@schuster.ms> | 2020-10-03 18:10:16 +0300 |
---|---|---|
committer | Hannah von Reth <vonreth@kde.org> | 2020-10-05 11:36:35 +0300 |
commit | 3ef9835f8bed0ca36e67dd79abed10acba63f77d (patch) | |
tree | fb463f957c08a199740877214d003c56d44d8644 /src/gui/folderwatcher_mac.cpp | |
parent | 05e587efd588079e2b6d6caf43d5cebdb5f23d05 (diff) |
macOS: Fix memory leak in FolderWatcherPrivate::startWatching
Signed-off-by: Michael Schuster <michael@schuster.ms>
Diffstat (limited to 'src/gui/folderwatcher_mac.cpp')
-rw-r--r-- | src/gui/folderwatcher_mac.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gui/folderwatcher_mac.cpp b/src/gui/folderwatcher_mac.cpp index a28277fea..fde71b361 100644 --- a/src/gui/folderwatcher_mac.cpp +++ b/src/gui/folderwatcher_mac.cpp @@ -101,6 +101,7 @@ void FolderWatcherPrivate::startWatching() kFSEventStreamCreateFlagUseCFTypes | kFSEventStreamCreateFlagFileEvents | kFSEventStreamCreateFlagIgnoreSelf); CFRelease(pathsToWatch); + CFRelease(folderCF); FSEventStreamScheduleWithRunLoop(_stream, CFRunLoopGetCurrent(), kCFRunLoopDefaultMode); FSEventStreamStart(_stream); } |