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
This commit is contained in:
Warren Dukes 2004-11-09 20:28:54 +00:00
parent f8c5df0c7e
commit 86cf70dcb2

View File

@ -222,7 +222,7 @@ MpdTag * modTagDup(char * file) {
ret = newMpdTag(); ret = newMpdTag();
ret->time = 0; ret->time = 0;
ret->title = Player_LoadTitle(file); ret->title = strdup(Player_LoadTitle(file));
fail: fail:
MikMod_Exit(); MikMod_Exit();