From: Mikko Rasa Date: Sat, 23 Jun 2018 00:59:17 +0000 (+0300) Subject: Plug a memory leak in Mp3Decoder X-Git-Url: http://git.tdb.fi/?p=libs%2Fal.git;a=commitdiff_plain;h=7961a6bc2a735d08a5d1ffeb6772ec3d545cb98c Plug a memory leak in Mp3Decoder --- diff --git a/source/mp3decoder.cpp b/source/mp3decoder.cpp index a717cf4..8ddad47 100644 --- a/source/mp3decoder.cpp +++ b/source/mp3decoder.cpp @@ -71,6 +71,7 @@ Mp3Decoder::~Mp3Decoder() mad_synth_finish(&priv->synth); mad_frame_finish(&priv->frame); mad_stream_finish(&priv->stream); + delete priv; } bool Mp3Decoder::detect(const string &sig)