encoding-profile: Fix caps memory leak
authorSebastian Dröge <sebastian@centricular.com>
Fri, 29 Apr 2016 08:06:49 +0000 (11:06 +0300)
committerSebastian Dröge <sebastian@centricular.com>
Fri, 29 Apr 2016 08:06:49 +0000 (11:06 +0300)
gst-libs/gst/pbutils/encoding-profile.c

index 5443996..5cd2541 100644 (file)
@@ -1530,6 +1530,7 @@ add_stream_to_profile (GstEncodingContainerProfile * profile,
         n_streams++;
     }
     gst_discoverer_stream_info_list_free (streams);
+    gst_caps_unref (caps);
 
     return n_streams != 0;
   } else {