[gtk+] GdkWindow: destroy paint gl context on destroy
- From: Alexander Larsson <alexl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] GdkWindow: destroy paint gl context on destroy
- Date: Thu, 30 Oct 2014 11:43:30 +0000 (UTC)
commit 5f14630b76f31c9f6c146100cb3a843ffa28db6d
Author: Alexander Larsson <alexl redhat com>
Date: Thu Oct 30 12:07:39 2014 +0100
GdkWindow: destroy paint gl context on destroy
gdk/gdkwindow.c | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/gdk/gdkwindow.c b/gdk/gdkwindow.c
index 3bef1da..b43d5d9 100644
--- a/gdk/gdkwindow.c
+++ b/gdk/gdkwindow.c
@@ -1993,6 +1993,14 @@ _gdk_window_destroy_hierarchy (GdkWindow *window,
}
}
+ if (window->gl_paint_context)
+ {
+ /* Make sure to destroy if current */
+ g_object_run_dispose (G_OBJECT (window->gl_paint_context));
+ g_object_unref (window->gl_paint_context);
+ window->gl_paint_context = NULL;
+ }
+
if (window->frame_clock)
{
g_object_run_dispose (G_OBJECT (window->frame_clock));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]