From 86cf70dcb262e6637a1859893833c724149d1628 Mon Sep 17 00:00:00 2001 From: Warren Dukes Date: Tue, 9 Nov 2004 20:28:54 +0000 Subject: 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 --- src/inputPlugins/mod_plugin.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); -- cgit v1.2.3