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:
parent
f8c5df0c7e
commit
86cf70dcb2
@ -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();
|
||||||
|
Loading…
Reference in New Issue
Block a user