ttmlparse: don't leak caps.
authorChris Bass <floobleflam@gmail.com>
Wed, 22 Mar 2017 10:41:44 +0000 (10:41 +0000)
committerSebastian Dröge <sebastian@centricular.com>
Sun, 9 Apr 2017 07:42:08 +0000 (10:42 +0300)
https://bugzilla.gnome.org/show_bug.cgi?id=780402

ext/ttml/gstttmlparse.c

index 38f3fba48f64b50d761f36c5c63ed93906f35a9e..9bc05c0e12e37de0e63e364d3460ce2d2a6257b5 100644 (file)
@@ -463,6 +463,7 @@ handle_buffer (GstTtmlParse * self, GstBuffer * buf)
 
   if (!(caps = gst_ttml_parse_get_src_caps (self)))
     return GST_FLOW_EOS;
+  gst_caps_unref (caps);
 
   /* Push newsegment if needed */
   if (self->need_segment) {