summaryrefslogtreecommitdiffstats
path: root/progs
diff options
context:
space:
mode:
authorVinson Lee <[email protected]>2009-11-20 15:48:29 -0800
committerVinson Lee <[email protected]>2009-12-04 00:03:14 -0800
commit4bf96ebdaeac780a5f28c0413b4e2fc5848f923c (patch)
tree131723cdc920f58987aa5866eb5c2396f93b9b95 /progs
parentba3fedf24610a3db2db0b49b8b84ac3af99a87cb (diff)
progs/xdemos: Fix memory leak in pbdemo.c.
(cherry picked from commit e0857962b911ef317238498305651515d83029ae)
Diffstat (limited to 'progs')
-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 2573209336c..277df729246 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;
}