[gtk+] GdkGLContextX11: Don't free NULL visual info
- From: Alexander Larsson <alexl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] GdkGLContextX11: Don't free NULL visual info
- Date: Wed, 29 Oct 2014 10:26:47 +0000 (UTC)
commit d5cd05a0f49464993f583ce15e54ceaae5c1988d
Author: Alexander Larsson <alexl redhat com>
Date: Wed Oct 29 11:25:21 2014 +0100
GdkGLContextX11: Don't free NULL visual info
gdk/x11/gdkglcontext-x11.c | 5 +----
1 files changed, 1 insertions(+), 4 deletions(-)
---
diff --git a/gdk/x11/gdkglcontext-x11.c b/gdk/x11/gdkglcontext-x11.c
index 12a6b8a..a6f8213 100644
--- a/gdk/x11/gdkglcontext-x11.c
+++ b/gdk/x11/gdkglcontext-x11.c
@@ -634,10 +634,7 @@ find_fbconfig_for_visual (GdkDisplay *display,
visinfo = glXGetVisualFromFBConfig (dpy, configs[i]);
if (visinfo == NULL)
- {
- XFree (visinfo);
- continue;
- }
+ continue;
if (visinfo->visualid != xvisual_id)
continue;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]