aboutsummaryrefslogtreecommitdiffstats
path: root/progs
diff options
context:
space:
mode:
authorVinson Lee <[email protected]>2009-11-20 15:18:19 -0800
committerVinson Lee <[email protected]>2009-11-20 15:18:19 -0800
commit538a8df65238994f70617a79ec1a0dbcd381001d (patch)
treeb99384e66b94592b81cd0102d984e23fb3b278c5 /progs
parenta4720a1a3206dd2edecf47a21fce547a79b67610 (diff)
progs/xdemos: Fix memory leak in glxpbdemo.c.
Diffstat (limited to 'progs')
-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;
}