Commit a9e351e0 authored by Max Kellermann's avatar Max Kellermann

decoder/gme: fix memory leak in container_scan()

parent d65841a2
ver 0.18.10 (not yet released)
* decoder
- gme: fix memory leak
ver 0.18.9 (2014/03/02)
* protocol
......
......@@ -117,6 +117,7 @@ gme_container_scan(const char *path_fs, const unsigned int tnum)
}
const unsigned num_songs = gme_track_count(emu);
gme_delete(emu);
/* if it only contains a single tune, don't treat as container */
if (num_songs < 2)
return nullptr;
......
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