glimagesink: fix memleak

https://bugzilla.gnome.org/show_bug.cgi?id=743142
This commit is contained in:
Nicola Murino 2015-01-18 21:05:44 +01:00 committed by Tim-Philipp Müller
parent 2e3d26192f
commit dd928efa51

View file

@ -871,9 +871,11 @@ gst_glimage_sink_set_caps (GstBaseSink * bsink, GstCaps * caps)
glimage_sink->convert = gst_gl_color_convert_new (glimage_sink->context);
if (!gst_gl_color_convert_set_caps (glimage_sink->convert, uploaded_caps,
glimage_sink->gl_caps)) {
gst_caps_unref (uploaded_caps);
gst_caps_features_free (gl_features);
return FALSE;
}
gst_caps_unref (uploaded_caps);
gst_caps_features_free (gl_features);
glimage_sink->caps_change = TRUE;