Minor followup fixes for the previous commit.
authorMichel Dänzer <michel@tungstengraphics.com>
Thu, 6 Dec 2007 09:19:22 +0000 (10:19 +0100)
committerMichel Dänzer <michel@tungstengraphics.com>
Thu, 6 Dec 2007 09:19:22 +0000 (10:19 +0100)
src/glx/x11/dri_glx.c

index 9c3a78b31b7153009a205bdaebd907497b195601..dab454e8e30e318089a45c463e2b31df923e4a84 100644 (file)
@@ -241,7 +241,10 @@ static __DRIdriver *OpenDriver(const char *driverName)
          driver->name = __glXstrdup(driverName);
          driver->libpath = __glXstrdup(realDriverName);
          if (!driver->name || !driver->libpath) {
-            if (driver->name) XFree(driver->name);
+            if (driver->name)
+               Xfree(driver->name);
+            if (driver->libpath)
+               Xfree(driver->libpath);
             Xfree(driver);
             driver = NULL;
             break; /* out of memory! */