mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-03-06 10:00:30 +01:00
Minor followup fixes for the previous commit.
This commit is contained in:
parent
17afc800c9
commit
62f6e55013
1 changed files with 4 additions and 1 deletions
|
|
@ -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! */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue