From 649e76575dcaaeb9becdaa8ca20e44236863183f Mon Sep 17 00:00:00 2001 From: Roman Donchenko Date: Wed, 8 Jul 2015 17:08:56 +0300 Subject: [PATCH] pngparse: fix a GstCaps object leak https://bugzilla.gnome.org//show_bug.cgi?id=752127 --- gst/videoparsers/gstpngparse.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gst/videoparsers/gstpngparse.c b/gst/videoparsers/gstpngparse.c index d266bd3445..c50efb5787 100644 --- a/gst/videoparsers/gstpngparse.c +++ b/gst/videoparsers/gstpngparse.c @@ -221,6 +221,8 @@ gst_png_parse_handle_frame (GstBaseParse * parse, } else { GST_WARNING_OBJECT (pngparse, "No framerate set"); } + + gst_caps_unref (sink_caps); } if (!gst_pad_set_caps (GST_BASE_PARSE_SRC_PAD (parse), caps))