From 47a358783e5a7a04733a46b14fdf561750815309 Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Tue, 17 May 2016 13:40:38 +0300 Subject: deinterlace: fix caps leak The caps returned by gst_pad_get_current_caps() was never unreffed when not early returning. Fix a leak with the elements/deinterlace test. https://bugzilla.gnome.org/show_bug.cgi?id=766558 --- gst/deinterlace/gstdeinterlace.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gst/deinterlace/gstdeinterlace.c b/gst/deinterlace/gstdeinterlace.c index 65e9c7142..cd9b1e1a5 100644 --- a/gst/deinterlace/gstdeinterlace.c +++ b/gst/deinterlace/gstdeinterlace.c @@ -2532,6 +2532,7 @@ gst_deinterlace_setcaps (GstDeinterlace * self, GstPad * pad, GstCaps * caps) return TRUE; } gst_deinterlace_reset_history (self, FALSE); + gst_caps_unref (current_caps); } peercaps = gst_pad_peer_query_caps (self->srcpad, NULL); -- cgit v1.2.3