mpegtsmux: fix memory leak

https://bugzilla.gnome.org/show_bug.cgi?id=678130
This commit is contained in:
Matej Knopp 2012-06-19 22:45:27 -04:00 committed by Mark Nauwelaerts
parent d7ad4ce890
commit 9ad3761148

View file

@ -1549,6 +1549,8 @@ new_packet_cb (GstBuffer * buf, void *user_data, gint64 new_pcr)
/* do common init (flags and streamheaders) */ /* do common init (flags and streamheaders) */
new_packet_common_init (mux, buf, map.data + offset, map.size); new_packet_common_init (mux, buf, map.data + offset, map.size);
gst_buffer_unmap (buf, &map);
/* all is meant for downstream, including any prefix */ /* all is meant for downstream, including any prefix */
if (offset) if (offset)
return new_packet_m2ts (mux, buf, new_pcr); return new_packet_m2ts (mux, buf, new_pcr);