From 693f3f9ce2e630a6b83d13e6585e08db5340e34a Mon Sep 17 00:00:00 2001 From: Thiago Santos Date: Fri, 27 Jun 2014 14:24:10 -0300 Subject: [PATCH] playsinkconvertbin: fix caps leak Let go the reference to the converter caps after using it --- gst/playback/gstplaysinkconvertbin.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gst/playback/gstplaysinkconvertbin.c b/gst/playback/gstplaysinkconvertbin.c index 8ec85a4..a9272b0 100644 --- a/gst/playback/gstplaysinkconvertbin.c +++ b/gst/playback/gstplaysinkconvertbin.c @@ -418,6 +418,7 @@ gst_play_sink_convert_bin_getcaps (GstPad * pad, GstCaps * filter) gst_caps_merge_structure_full (ret, gst_structure_copy (s), (cf ? gst_caps_features_copy (cf) : NULL)); } + gst_caps_unref (converter_caps); } else { ret = peer_caps; GST_PLAY_SINK_CONVERT_BIN_FILTER_CAPS (filter, ret); -- 2.7.4