mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 22:36:33 +00:00
glimagesink: fix memleak
https://bugzilla.gnome.org/show_bug.cgi?id=743142
This commit is contained in:
parent
2e3d26192f
commit
dd928efa51
1 changed files with 2 additions and 0 deletions
|
@ -871,9 +871,11 @@ gst_glimage_sink_set_caps (GstBaseSink * bsink, GstCaps * caps)
|
||||||
glimage_sink->convert = gst_gl_color_convert_new (glimage_sink->context);
|
glimage_sink->convert = gst_gl_color_convert_new (glimage_sink->context);
|
||||||
if (!gst_gl_color_convert_set_caps (glimage_sink->convert, uploaded_caps,
|
if (!gst_gl_color_convert_set_caps (glimage_sink->convert, uploaded_caps,
|
||||||
glimage_sink->gl_caps)) {
|
glimage_sink->gl_caps)) {
|
||||||
|
gst_caps_unref (uploaded_caps);
|
||||||
gst_caps_features_free (gl_features);
|
gst_caps_features_free (gl_features);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
gst_caps_unref (uploaded_caps);
|
||||||
gst_caps_features_free (gl_features);
|
gst_caps_features_free (gl_features);
|
||||||
|
|
||||||
glimage_sink->caps_change = TRUE;
|
glimage_sink->caps_change = TRUE;
|
||||||
|
|
Loading…
Reference in a new issue