aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorWarren Dukes <warren.dukes@gmail.com>2004-11-09 20:28:54 +0000
committerWarren Dukes <warren.dukes@gmail.com>2004-11-09 20:28:54 +0000
commit86cf70dcb262e6637a1859893833c724149d1628 (patch)
tree363fcf4e0baa2d4f8a2553285cc355524131680e /src
parentf8c5df0c7e33a40f55042a845b460afcfbe75a5a (diff)
downloadmpd-86cf70dcb262e6637a1859893833c724149d1628.tar.gz
mpd-86cf70dcb262e6637a1859893833c724149d1628.tar.xz
mpd-86cf70dcb262e6637a1859893833c724149d1628.zip
here's why mikmod was segfaulting, the char * strings returned need to be strdup()'d, and not free'd
git-svn-id: https://svn.musicpd.org/mpd/trunk@2565 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to '')
-rw-r--r--src/inputPlugins/mod_plugin.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/inputPlugins/mod_plugin.c b/src/inputPlugins/mod_plugin.c
index 2a03cc404..0ea7dffad 100644
--- a/src/inputPlugins/mod_plugin.c
+++ b/src/inputPlugins/mod_plugin.c
@@ -222,7 +222,7 @@ MpdTag * modTagDup(char * file) {
ret = newMpdTag();
ret->time = 0;
- ret->title = Player_LoadTitle(file);
+ ret->title = strdup(Player_LoadTitle(file));
fail:
MikMod_Exit();