aacparse: fix memory leak when prepending ADTS headers

https://bugzilla.gnome.org/show_bug.cgi?id=737761
This commit is contained in:
Matej Knopp 2014-10-02 03:26:22 +02:00 committed by Sebastian Dröge
parent 7ae7f657fa
commit e1d275cfec

View file

@ -1152,7 +1152,7 @@ gst_aac_parse_prepend_adts_headers (GstAacParse * aacparse,
adts_headers[6] = 0xFCU;
mem = gst_memory_new_wrapped (0, adts_headers, ADTS_HEADERS_LENGTH, 0,
ADTS_HEADERS_LENGTH, NULL, NULL);
ADTS_HEADERS_LENGTH, adts_headers, g_free);
gst_buffer_prepend_memory (frame->out_buffer, mem);
return TRUE;