]> git.tdb.fi Git - libs/al.git/commitdiff
Plug a memory leak in Mp3Decoder
authorMikko Rasa <tdb@tdb.fi>
Sat, 23 Jun 2018 00:59:17 +0000 (03:59 +0300)
committerMikko Rasa <tdb@tdb.fi>
Sat, 23 Jun 2018 00:59:17 +0000 (03:59 +0300)
source/mp3decoder.cpp

index a717cf4b3b4dde400cac7b234d4cecf6db822c1d..8ddad47032ee08eae3155ec133747773f9546726 100644 (file)
@@ -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)