h263enc: fix caps leak in error code path

https://bugzilla.gnome.org/show_bug.cgi?id=788245
This commit is contained in:
Ponnam Srinivas 2017-09-27 19:47:29 +05:30 committed by Sebastian Dröge
parent 1f36637434
commit 8556596862

View file

@ -262,6 +262,7 @@ gst_omx_h263_enc_get_caps (GstOMXVideoEnc * enc, GstOMXPort * port,
break;
default:
g_assert_not_reached ();
gst_caps_unref (caps);
return NULL;
}
@ -289,6 +290,7 @@ gst_omx_h263_enc_get_caps (GstOMXVideoEnc * enc, GstOMXPort * port,
break;
default:
g_assert_not_reached ();
gst_caps_unref (caps);
return NULL;
}