diff options
author | Max Kellermann <max@duempel.org> | 2014-10-24 20:26:59 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-10-25 01:25:33 +0200 |
commit | 3e641e214734885b01cef2d4abe80d63048c66a2 (patch) | |
tree | cfb4cc3393216e8772594f09b3215468840556f8 /src/sticker/SongSticker.cxx | |
parent | de7e4f0db79f5250aac307f26bdbf228d7fc2fac (diff) | |
download | mpd-3e641e214734885b01cef2d4abe80d63048c66a2.tar.gz mpd-3e641e214734885b01cef2d4abe80d63048c66a2.tar.xz mpd-3e641e214734885b01cef2d4abe80d63048c66a2.zip |
SongSticker: don't use GLib
Diffstat (limited to 'src/sticker/SongSticker.cxx')
-rw-r--r-- | src/sticker/SongSticker.cxx | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/sticker/SongSticker.cxx b/src/sticker/SongSticker.cxx index b6f46f167..c052633b8 100644 --- a/src/sticker/SongSticker.cxx +++ b/src/sticker/SongSticker.cxx @@ -23,8 +23,7 @@ #include "db/LightSong.hxx" #include "db/Interface.hxx" #include "util/Error.hxx" - -#include <glib.h> +#include "util/Alloc.hxx" #include <assert.h> #include <string.h> @@ -109,7 +108,7 @@ sticker_song_find(const Database &db, const char *base_uri, const char *name, if (*data.base_uri != 0) /* append slash to base_uri */ data.base_uri = allocated = - g_strconcat(data.base_uri, "/", nullptr); + xstrcatdup(data.base_uri, "/"); else /* searching in root directory - no trailing slash */ allocated = nullptr; @@ -118,7 +117,7 @@ sticker_song_find(const Database &db, const char *base_uri, const char *name, bool success = sticker_find("song", data.base_uri, name, sticker_song_find_cb, &data); - g_free(allocated); + free(allocated); return success; } |