aboutsummaryrefslogtreecommitdiffstats
path: root/src/db/update
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-02-24 19:38:30 +0100
committerMax Kellermann <max@duempel.org>2014-02-24 20:19:34 +0100
commit25431f32a2e75b093b3207c6fce57c7904fc1a96 (patch)
tree2c2a10144af14601d21654f624826285b69384f9 /src/db/update
parent6ba1fe75689b394d39488b691b225e4269110b61 (diff)
downloadmpd-25431f32a2e75b093b3207c6fce57c7904fc1a96.tar.gz
mpd-25431f32a2e75b093b3207c6fce57c7904fc1a96.tar.xz
mpd-25431f32a2e75b093b3207c6fce57c7904fc1a96.zip
DecoderPlugin: free the container_scan() return value with delete[]
Diffstat (limited to 'src/db/update')
-rw-r--r--src/db/update/Container.cxx4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/db/update/Container.cxx b/src/db/update/Container.cxx
index 97cff332f..aedcf42ac 100644
--- a/src/db/update/Container.cxx
+++ b/src/db/update/Container.cxx
@@ -34,8 +34,6 @@
#include <sys/stat.h>
-#include <glib.h>
-
Directory *
UpdateWalk::MakeDirectoryIfModified(Directory &parent, const char *name,
const FileInfo &info)
@@ -120,7 +118,7 @@ UpdateWalk::UpdateContainerFile(Directory &directory,
FormatDefault(update_domain, "added %s/%s",
directory.GetPath(), vtrack);
- g_free(vtrack);
+ delete[] vtrack;
}
if (tnum == 1) {