From a9e351e00d023829a5bb7def60208eef826b2ef3 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 6 Mar 2014 13:12:39 +0100 Subject: decoder/gme: fix memory leak in container_scan() --- src/decoder/GmeDecoderPlugin.cxx | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/decoder/GmeDecoderPlugin.cxx b/src/decoder/GmeDecoderPlugin.cxx index 815fd8d69..d67ee4b42 100644 --- a/src/decoder/GmeDecoderPlugin.cxx +++ b/src/decoder/GmeDecoderPlugin.cxx @@ -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; -- cgit v1.2.3