libs: gl: Fix a context leak when display_create_context failed

This commit is contained in:
He Junyan 2020-04-08 15:26:23 +08:00
parent 545a993316
commit 4216bd6eb2

View file

@ -573,6 +573,8 @@ gst_gl_display_create_context (GstGLDisplay * display,
if (ret)
*p_context = context;
else
gst_object_unref (context);
return ret;
}