Minor followup fixes for the previous commit.

This commit is contained in:
Michel Dänzer 2007-12-06 10:19:22 +01:00
parent 17afc800c9
commit 62f6e55013

View 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! */