Commit 86cf70dc authored by Warren Dukes's avatar Warren Dukes

here's why mikmod was segfaulting, the char * strings returned need to be…

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
parent f8c5df0c
...@@ -222,7 +222,7 @@ MpdTag * modTagDup(char * 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();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment