mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-02 20:42:30 +00:00
fdkaacenc: fix buffer leak
https://bugzilla.gnome.org/show_bug.cgi?id=772186
This commit is contained in:
parent
20caebe6a1
commit
95de5bf193
1 changed files with 2 additions and 0 deletions
|
@ -142,11 +142,13 @@ gst_fdkaacdec_set_format (GstAudioDecoder * dec, GstCaps * caps)
|
||||||
|
|
||||||
if ((err = aacDecoder_ConfigRaw (self->dec, &data, &size)) != AAC_DEC_OK) {
|
if ((err = aacDecoder_ConfigRaw (self->dec, &data, &size)) != AAC_DEC_OK) {
|
||||||
gst_buffer_unmap (codec_data, &map);
|
gst_buffer_unmap (codec_data, &map);
|
||||||
|
gst_buffer_unref (codec_data);
|
||||||
GST_ERROR_OBJECT (self, "Invalid codec_data: %d", err);
|
GST_ERROR_OBJECT (self, "Invalid codec_data: %d", err);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
gst_buffer_unmap (codec_data, &map);
|
gst_buffer_unmap (codec_data, &map);
|
||||||
|
gst_buffer_unref (codec_data);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((err =
|
if ((err =
|
||||||
|
|
Loading…
Reference in a new issue