diff --git a/gst-libs/gst/gl/gstglviewconvert.c b/gst-libs/gst/gl/gstglviewconvert.c index 9890175edf..76ecabbf03 100644 --- a/gst-libs/gst/gl/gstglviewconvert.c +++ b/gst-libs/gst/gl/gstglviewconvert.c @@ -718,8 +718,8 @@ _expand_par_for_half_aspect (GstCaps * in, gboolean vertical_half_aspect) features ? gst_caps_features_copy (features) : NULL); gst_structure_free (s); - if (features); - gst_caps_features_free (features); + if (features) + gst_caps_features_free (features); } gst_caps_unref (in);