From 907ef9b7c026f8958d8f5d0fdf6da4f1b8e199d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Fri, 29 Apr 2016 11:06:49 +0300 Subject: encoding-profile: Fix caps memory leak --- gst-libs/gst/pbutils/encoding-profile.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gst-libs/gst/pbutils/encoding-profile.c b/gst-libs/gst/pbutils/encoding-profile.c index 54439961d..5cd25416d 100644 --- a/gst-libs/gst/pbutils/encoding-profile.c +++ b/gst-libs/gst/pbutils/encoding-profile.c @@ -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 { -- cgit v1.2.1