diff options
author | Vinson Lee <[email protected]> | 2009-11-20 15:18:19 -0800 |
---|---|---|
committer | Vinson Lee <[email protected]> | 2009-11-20 15:18:19 -0800 |
commit | 538a8df65238994f70617a79ec1a0dbcd381001d (patch) | |
tree | b99384e66b94592b81cd0102d984e23fb3b278c5 | |
parent | a4720a1a3206dd2edecf47a21fce547a79b67610 (diff) |
progs/xdemos: Fix memory leak in glxpbdemo.c.
-rw-r--r-- | progs/xdemos/glxpbdemo.c | 1 |
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; } |