From 28f3e190c8b13771a7fa37ee0a9c0833e792f35c Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 3 Jan 2013 09:40:37 +0100 Subject: InotifyQueue: use std::deque instead of GSList --- src/InotifyUpdate.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/InotifyUpdate.cxx') 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); -- cgit v1.2.3