OSDN Git Service

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 9c3a78b..dab454e 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! */