mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 05:06:17 +00:00
libs: gl: Fix a context leak when display_create_context failed
This commit is contained in:
parent
545a993316
commit
4216bd6eb2
1 changed files with 2 additions and 0 deletions
|
@ -573,6 +573,8 @@ gst_gl_display_create_context (GstGLDisplay * display,
|
||||||
|
|
||||||
if (ret)
|
if (ret)
|
||||||
*p_context = context;
|
*p_context = context;
|
||||||
|
else
|
||||||
|
gst_object_unref (context);
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue