summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatej Knopp <matej.knopp@gmail.com>2014-10-02 03:26:22 +0200
committerSebastian Dröge <sebastian@centricular.com>2014-10-14 09:37:37 +0200
commit8060fc1d97e5d9a50f833c4f64fda3cf70d55741 (patch)
tree6b511c56d416485588d9185c8e5c264008e3336d
parente394ad4b9b1ff0fa31a4903a8f07b6fc7bdb455d (diff)
aacparse: fix memory leak when prepending ADTS headers
https://bugzilla.gnome.org/show_bug.cgi?id=737761
-rw-r--r--gst/audioparsers/gstaacparse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gst/audioparsers/gstaacparse.c b/gst/audioparsers/gstaacparse.c
index 97b7f3e41..7c999e1af 100644
--- a/gst/audioparsers/gstaacparse.c
+++ b/gst/audioparsers/gstaacparse.c
@@ -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;