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:
Wonchul Lee 2019-11-13 17:31:29 +09:00
parent 95abc6c263
commit 7d8e7cd3eb

View file

@ -420,6 +420,9 @@ gst_gl_context_egl_choose_config (GstGLContextEGL * egl, GstGLAPI gl_api,
surface_type = EGL_PBUFFER_BIT;
}
if (window)
gst_object_unref (window);
create_context =
gst_gl_check_extension ("EGL_KHR_create_context", egl->egl_exts);
/* silence unused warnings */