qtdemux: fix tag list leak on unknown stream type
authorVincent Penquerc'h <vincent.penquerch@collabora.co.uk>
Thu, 16 Apr 2015 11:23:38 +0000 (12:23 +0100)
committerVincent Penquerc'h <vincent.penquerch@collabora.co.uk>
Thu, 16 Apr 2015 12:10:21 +0000 (13:10 +0100)
gst/isomp4/qtdemux.c

index 518f174..e6b2539 100644 (file)
@@ -6391,10 +6391,13 @@ gst_qtdemux_add_stream (GstQTDemux * qtdemux,
     if (stream->pending_tags)
       gst_tag_list_unref (stream->pending_tags);
     stream->pending_tags = list;
+    list = NULL;
     /* global tags go on each pad anyway */
     stream->send_global_tags = TRUE;
   }
 done:
+  if (list)
+    gst_tag_list_unref (list);
   return TRUE;
 }