mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-05 15:08:53 +00:00
glcontext/egl: Fix window leak
Fixed to do unref after use of window get by gst_gl_context_get_window()
This commit is contained in:
parent
95abc6c263
commit
7d8e7cd3eb
1 changed files with 3 additions and 0 deletions
|
@ -420,6 +420,9 @@ gst_gl_context_egl_choose_config (GstGLContextEGL * egl, GstGLAPI gl_api,
|
||||||
surface_type = EGL_PBUFFER_BIT;
|
surface_type = EGL_PBUFFER_BIT;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (window)
|
||||||
|
gst_object_unref (window);
|
||||||
|
|
||||||
create_context =
|
create_context =
|
||||||
gst_gl_check_extension ("EGL_KHR_create_context", egl->egl_exts);
|
gst_gl_check_extension ("EGL_KHR_create_context", egl->egl_exts);
|
||||||
/* silence unused warnings */
|
/* silence unused warnings */
|
||||||
|
|
Loading…
Reference in a new issue