From 62f6e550138ebccbdeb8dd044eabf757d5482126 Mon Sep 17 00:00:00 2001 From: Michel Dänzer Date: Thu, 6 Dec 2007 10:19:22 +0100 Subject: Minor followup fixes for the previous commit. --- src/glx/x11/dri_glx.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/glx/x11/dri_glx.c b/src/glx/x11/dri_glx.c index 9c3a78b31b..dab454e8e3 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! */ -- cgit v1.2.3