[gnome-remote-desktop/gnome-42] egl-thread: Release EGL context before destroying it
- From: Jonas Ådahl <jadahl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-remote-desktop/gnome-42] egl-thread: Release EGL context before destroying it
- Date: Fri, 1 Jul 2022 16:18:07 +0000 (UTC)
commit 9bb8f2fea37899d3ce02a67175751ad640a1333f
Author: Pascal Nowack <Pascal Nowack gmx de>
Date: Fri Jul 1 16:14:35 2022 +0200
egl-thread: Release EGL context before destroying it
Otherwise the resources associated with it are leaked.
src/grd-egl-thread.c | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/src/grd-egl-thread.c b/src/grd-egl-thread.c
index 444b1eec..4b36cccd 100644
--- a/src/grd-egl-thread.c
+++ b/src/grd-egl-thread.c
@@ -540,6 +540,8 @@ grd_egl_thread_func (gpointer user_data)
}
g_async_queue_unref (egl_thread->task_queue);
+ eglMakeCurrent (egl_thread->impl.egl_display,
+ EGL_NO_SURFACE, EGL_NO_SURFACE, EGL_NO_CONTEXT);
eglDestroyContext (egl_thread->impl.egl_display,
egl_thread->impl.egl_context);
eglTerminate (egl_thread->impl.egl_display);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]