From 84b20091550641157fdf899268ab6da74f6fe3cd Mon Sep 17 00:00:00 2001 From: =?utf8?q?Aur=C3=A9lien=20Zanelli?= Date: Wed, 28 May 2014 09:49:59 +0200 Subject: [PATCH] x264enc: fix caps leak in set_format() https://bugzilla.gnome.org/show_bug.cgi?id=730865 --- ext/x264/gstx264enc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ext/x264/gstx264enc.c b/ext/x264/gstx264enc.c index 61e7698..3d81d96 100644 --- a/ext/x264/gstx264enc.c +++ b/ext/x264/gstx264enc.c @@ -1804,6 +1804,7 @@ gst_x264_enc_set_format (GstVideoEncoder * video_enc, if (gst_caps_is_empty (allowed_caps)) { gst_caps_unref (allowed_caps); + gst_caps_unref (template_caps); return FALSE; } -- 2.7.4