mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 14:26:43 +00:00
aacparse: fix memory leak when prepending ADTS headers
https://bugzilla.gnome.org/show_bug.cgi?id=737761
This commit is contained in:
parent
7ae7f657fa
commit
e1d275cfec
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue