Commit 62f6e550 authored by Michel Dänzer's avatar Michel Dänzer

Minor followup fixes for the previous commit.

parent 17afc800
...@@ -241,7 +241,10 @@ static __DRIdriver *OpenDriver(const char *driverName) ...@@ -241,7 +241,10 @@ static __DRIdriver *OpenDriver(const char *driverName)
driver->name = __glXstrdup(driverName); driver->name = __glXstrdup(driverName);
driver->libpath = __glXstrdup(realDriverName); driver->libpath = __glXstrdup(realDriverName);
if (!driver->name || !driver->libpath) { 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); Xfree(driver);
driver = NULL; driver = NULL;
break; /* out of memory! */ break; /* out of memory! */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment