* Clean up after some memory allocations before exit so valgrind is happy.

* Fork off the scanner process instead of doing it in another thread, so if libavformat leaks memory it will be cleaned up once scanning is finished.
This commit is contained in:
Justin Maggard
2009-10-03 02:08:59 +00:00
parent 1f29b0cac1
commit ba29e35bcc
7 changed files with 80 additions and 40 deletions

View File

@ -220,7 +220,7 @@ _make_composite_tags(struct song_metadata *psong)
}
}
#if 0 // already taken care of by scanner.c
if(!psong->title)
{
char *suffix;
@ -228,6 +228,7 @@ _make_composite_tags(struct song_metadata *psong)
suffix = strrchr(psong->title, '.');
if(suffix) *suffix = '\0';
}
#endif
}