From 9ad37611489735c2dbdf0296367fc8891355f6a4 Mon Sep 17 00:00:00 2001 From: Matej Knopp Date: Tue, 19 Jun 2012 22:45:27 -0400 Subject: [PATCH] mpegtsmux: fix memory leak https://bugzilla.gnome.org/show_bug.cgi?id=678130 --- gst/mpegtsmux/mpegtsmux.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gst/mpegtsmux/mpegtsmux.c b/gst/mpegtsmux/mpegtsmux.c index dcd9bdea7a..7572d1e65e 100644 --- a/gst/mpegtsmux/mpegtsmux.c +++ b/gst/mpegtsmux/mpegtsmux.c @@ -1549,6 +1549,8 @@ new_packet_cb (GstBuffer * buf, void *user_data, gint64 new_pcr) /* do common init (flags and streamheaders) */ new_packet_common_init (mux, buf, map.data + offset, map.size); + gst_buffer_unmap (buf, &map); + /* all is meant for downstream, including any prefix */ if (offset) return new_packet_m2ts (mux, buf, new_pcr);