summaryrefslogtreecommitdiff
path: root/progs/xdemos
diff options
context:
space:
mode:
authorVinson Lee <vlee@vmware.com>2009-11-20 15:48:29 -0800
committerVinson Lee <vlee@vmware.com>2009-11-20 15:48:29 -0800
commite0857962b911ef317238498305651515d83029ae (patch)
tree3ee009f06e4ecd4c8f396cbcda60729830e3d5d8 /progs/xdemos
parent538a8df65238994f70617a79ec1a0dbcd381001d (diff)
progs/xdemos: Fix memory leak in pbdemo.c.
Diffstat (limited to 'progs/xdemos')
-rw-r--r--progs/xdemos/pbdemo.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/progs/xdemos/pbdemo.c b/progs/xdemos/pbdemo.c
index 2573209336..277df72924 100644
--- a/progs/xdemos/pbdemo.c
+++ b/progs/xdemos/pbdemo.c
@@ -131,6 +131,7 @@ MakePbuffer( Display *dpy, int screen, int width, int height )
fbConfigs = ChooseFBConfig(dpy, screen, fbAttribs[attempt], &nConfigs);
if (nConfigs==0 || !fbConfigs) {
printf("Note: glXChooseFBConfig(%s) failed\n", fbString[attempt]);
+ XFree(fbConfigs);
continue;
}