aboutsummaryrefslogtreecommitdiff
path: root/src/InotifyUpdate.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-01-03 09:40:37 +0100
committerMax Kellermann <max@duempel.org>2013-01-03 10:02:26 +0100
commit28f3e190c8b13771a7fa37ee0a9c0833e792f35c (patch)
treececbd90221bafffc96e72a243a1f531eda0ec848 /src/InotifyUpdate.cxx
parentc4090b670d4a1fdb2b5d18e30764d50827838ee1 (diff)
InotifyQueue: use std::deque instead of GSList
Diffstat (limited to 'src/InotifyUpdate.cxx')
-rw-r--r--src/InotifyUpdate.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/InotifyUpdate.cxx b/src/InotifyUpdate.cxx
index 5440c0a8..b7bb3af2 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);