Use X_LIBS from pkg-config, instead of libdir, for locating libX11
[mesa.git] / progs / xdemos / glxpbdemo.c
index 91fd30dcaa693afc949229407323a472033e837d..ecf318ec6a7bc3efa13a7b13c7bd7c9a45d4b324 100644 (file)
@@ -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;
    }