aboutsummaryrefslogtreecommitdiffstats
path: root/src/InotifyUpdate.cxx
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/InotifyUpdate.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/InotifyUpdate.cxx b/src/InotifyUpdate.cxx
index 5440c0a84..b7bb3af2b 100644
--- a/src/InotifyUpdate.cxx
+++ b/src/InotifyUpdate.cxx
@@ -295,10 +295,10 @@ mpd_inotify_callback(int wd, unsigned mask,
? fs_charset_to_utf8(uri_fs)
: g_strdup("");
- if (uri_utf8 != NULL)
- /* this function will take care of freeing
- uri_utf8 */
+ if (uri_utf8 != NULL) {
mpd_inotify_enqueue(uri_utf8);
+ g_free(uri_utf8);
+ }
}
g_free(uri_fs);