diff options
author | Brian Paul <brian.paul@tungstengraphics.com> | 2006-01-16 16:17:18 +0000 |
---|---|---|
committer | Brian Paul <brian.paul@tungstengraphics.com> | 2006-01-16 16:17:18 +0000 |
commit | 361bccb4ecf90b56da1355e077a5da477aa2f520 (patch) | |
tree | c8b3108899f3ddc32d85e47fe4750fec48ee8bee /progs | |
parent | b4f70646b472776bb4651720fa3f10393daa6703 (diff) | |
download | external_mesa3d-361bccb4ecf90b56da1355e077a5da477aa2f520.zip external_mesa3d-361bccb4ecf90b56da1355e077a5da477aa2f520.tar.gz external_mesa3d-361bccb4ecf90b56da1355e077a5da477aa2f520.tar.bz2 |
Free visinfo object (Tilman Sauerbeck)
Diffstat (limited to 'progs')
-rw-r--r-- | progs/xdemos/glxinfo.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/progs/xdemos/glxinfo.c b/progs/xdemos/glxinfo.c index 46311bd..9577612 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); } |