mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 18:21:04 +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)
|
||||
*p_context = context;
|
||||
else
|
||||
gst_object_unref (context);
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue