summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2006-01-16 16:17:32 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2006-01-16 16:17:32 +0000
commit89f3e7f749cff434d0650d54460802f273654374 (patch)
tree5966cd97880a4c5c5028fb3f8b036f68b2eb9e94
parentd2e735f2e74ede0be9a555a363747a51f71670c6 (diff)
Free visinfo object (Tilman Sauerbeck)
-rw-r--r--progs/xdemos/glxinfo.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/progs/xdemos/glxinfo.c b/progs/xdemos/glxinfo.c
index 46311bd645..957761273c 100644
--- a/progs/xdemos/glxinfo.c
+++ b/progs/xdemos/glxinfo.c
@@ -262,6 +262,7 @@ print_screen_info(Display *dpy, int scrnum, Bool allowDirect, GLboolean limits)
ctx = glXCreateContext( dpy, visinfo, NULL, allowDirect );
if (!ctx) {
fprintf(stderr, "Error: glXCreateContext failed\n");
+ XFree(visinfo);
XDestroyWindow(dpy, win);
return;
}
@@ -336,6 +337,7 @@ print_screen_info(Display *dpy, int scrnum, Bool allowDirect, GLboolean limits)
}
glXDestroyContext(dpy, ctx);
+ XFree(visinfo);
XDestroyWindow(dpy, win);
}