summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/glx/drisw_glx.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/glx/drisw_glx.c b/src/glx/drisw_glx.c
index 66a60430e8..c5b179157b 100644
--- a/src/glx/drisw_glx.c
+++ b/src/glx/drisw_glx.c
@@ -502,10 +502,9 @@ driCreateScreen(int screen, struct glx_display *priv)
return &psc->base;
handle_error:
- Xfree(psc);
-
if (psc->driver)
dlclose(psc->driver);
+ Xfree(psc);
ErrorMessageF("reverting to indirect rendering\n");