projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a4720a1
)
progs/xdemos: Fix memory leak in glxpbdemo.c.
author
Vinson Lee
<vlee@vmware.com>
Fri, 20 Nov 2009 23:18:19 +0000
(15:18 -0800)
committer
Vinson Lee
<vlee@vmware.com>
Fri, 20 Nov 2009 23:18:19 +0000
(15:18 -0800)
progs/xdemos/glxpbdemo.c
patch
|
blob
|
history
diff --git
a/progs/xdemos/glxpbdemo.c
b/progs/xdemos/glxpbdemo.c
index 91fd30dcaa693afc949229407323a472033e837d..ecf318ec6a7bc3efa13a7b13c7bd7c9a45d4b324 100644
(file)
--- a/
progs/xdemos/glxpbdemo.c
+++ b/
progs/xdemos/glxpbdemo.c
@@
-106,6
+106,7
@@
MakePbuffer( Display *dpy, int screen, int width, int height )
if (0 == nConfigs || !fbConfigs) {
printf("Error: glxChooseFBConfig failed\n");
+ XFree(fbConfigs);
XCloseDisplay(dpy);
return 0;
}