summaryrefslogtreecommitdiffstats
path: root/progs/xdemos/glxpbdemo.c
diff options
context:
space:
mode:
Diffstat (limited to 'progs/xdemos/glxpbdemo.c')
-rw-r--r--progs/xdemos/glxpbdemo.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/progs/xdemos/glxpbdemo.c b/progs/xdemos/glxpbdemo.c
index 91fd30dcaa6..ecf318ec6a7 100644
--- 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;
}