x264enc: fix caps leak in set_format()
authorAurélien Zanelli <aurelien.zanelli@parrot.com>
Wed, 28 May 2014 07:49:59 +0000 (09:49 +0200)
committerSebastian Dröge <sebastian@centricular.com>
Wed, 28 May 2014 08:09:41 +0000 (10:09 +0200)
https://bugzilla.gnome.org/show_bug.cgi?id=730865

ext/x264/gstx264enc.c

index 61e7698f5e38fcc3ee4cb942e49564f85b6f5dcc..3d81d962eae8d8adbe4491c9c6c5a8553a0663d9 100644 (file)
@@ -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;
     }