Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/owncloud/client.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Schuster <michael@schuster.ms>2020-10-03 18:10:16 +0300
committerHannah von Reth <vonreth@kde.org>2020-10-05 11:36:35 +0300
commit3ef9835f8bed0ca36e67dd79abed10acba63f77d (patch)
treefb463f957c08a199740877214d003c56d44d8644 /src/gui/folderwatcher_mac.cpp
parent05e587efd588079e2b6d6caf43d5cebdb5f23d05 (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.cpp1
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);
}