OSDN Git Service
(root)
/
android-x86
/
external-mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b4f7064
)
Free visinfo object (Tilman Sauerbeck)
author
Brian Paul
<brian.paul@tungstengraphics.com>
Mon, 16 Jan 2006 16:17:18 +0000
(16:17 +0000)
committer
Brian Paul
<brian.paul@tungstengraphics.com>
Mon, 16 Jan 2006 16:17:18 +0000
(16:17 +0000)
progs/xdemos/glxinfo.c
patch
|
blob
|
history
diff --git
a/progs/xdemos/glxinfo.c
b/progs/xdemos/glxinfo.c
index
46311bd
..
9577612
100644
(file)
--- 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);
}