fdkaacenc: fix buffer leak

https://bugzilla.gnome.org/show_bug.cgi?id=772186
This commit is contained in:
Vincent Penquerc'h 2016-09-29 14:29:46 +01:00
parent 20caebe6a1
commit 95de5bf193

View file

@ -142,11 +142,13 @@ gst_fdkaacdec_set_format (GstAudioDecoder * dec, GstCaps * caps)
if ((err = aacDecoder_ConfigRaw (self->dec, &data, &size)) != AAC_DEC_OK) {
gst_buffer_unmap (codec_data, &map);
gst_buffer_unref (codec_data);
GST_ERROR_OBJECT (self, "Invalid codec_data: %d", err);
return FALSE;
}
gst_buffer_unmap (codec_data, &map);
gst_buffer_unref (codec_data);
}
if ((err =