From: Eunhae Choi Date: Wed, 7 Dec 2016 03:49:25 +0000 (+0900) Subject: playbin: fix caps memory leak X-Git-Tag: accepted/tizen/3.0/common/20161227.102301^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=836c76ef2d3db695b2b95628a66c71e857f3e174;p=platform%2Fupstream%2Fgst-plugins-base.git playbin: fix caps memory leak Change-Id: I51b9086653f950960e43b34245b6c79567b28e51 (cherry picked from commit 68c51ac31bd3f37a2bb4de36622914aac8ac8298) --- diff --git a/gst/playback/gstplaybin2.c b/gst/playback/gstplaybin2.c index 4a056a0..5cd4c60 100644 --- a/gst/playback/gstplaybin2.c +++ b/gst/playback/gstplaybin2.c @@ -4615,7 +4615,7 @@ autoplug_select_cb (GstElement * decodebin, GstPad * pad, ave_list = g_list_prepend (ave_list, NULL); } - /* if it is a decoder and we don't have a fixed sink, then find out + /* if it is a decoder and we don't have a fixed sink, then find out * the matching audio/video sink from GstAVElements list */ for (l = ave_list; l; l = l->next) { gboolean created_sink = FALSE; @@ -4692,6 +4692,7 @@ autoplug_select_cb (GstElement * decodebin, GstPad * pad, } gst_object_unref (sinkpad); + gst_caps_unref (raw_caps); gst_caps_unref (caps); } @@ -4803,7 +4804,7 @@ autoplug_select_cb (GstElement * decodebin, GstPad * pad, } /* remember the sink in the group now, the element is floating, we take - * ownership now + * ownership now * * store the sink in the group, we will configure it later when we * reconfigure the sink */