summaryrefslogtreecommitdiffstats
path: root/src/glx/x11/dri_glx.c
diff options
context:
space:
mode:
authorMichel Dänzer <[email protected]>2007-12-06 10:19:22 +0100
committerMichel Dänzer <[email protected]>2007-12-06 10:19:22 +0100
commit62f6e550138ebccbdeb8dd044eabf757d5482126 (patch)
tree23f6588b4a869b46350322c1a7610af5462cd94f /src/glx/x11/dri_glx.c
parent17afc800c9b69997ae7ba52b67c021f68066e008 (diff)
Minor followup fixes for the previous commit.
Diffstat (limited to 'src/glx/x11/dri_glx.c')
-rw-r--r--src/glx/x11/dri_glx.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/glx/x11/dri_glx.c b/src/glx/x11/dri_glx.c
index 9c3a78b31b7..dab454e8e30 100644
--- a/src/glx/x11/dri_glx.c
+++ b/src/glx/x11/dri_glx.c
@@ -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! */