summaryrefslogtreecommitdiff
path: root/src/glx/drisw_glx.c
diff options
context:
space:
mode:
authorRoland Scheidegger <sroland@vmware.com>2014-05-01 01:04:31 +0200
committerRoland Scheidegger <sroland@vmware.com>2014-05-01 16:13:38 +0200
commita773fdc64da8ba88d8c7f8e383c45248b0c3aa19 (patch)
tree84f792818414f8e3a4dd8546e606092d186f4197 /src/glx/drisw_glx.c
parent64d6460a56119c2da726d7de426dc8ac33e7f8bc (diff)
glx/drisw: fix memory leak when destroying screen.
Reviewed-by: Brian Paul <brianp@vmware.com>
Diffstat (limited to 'src/glx/drisw_glx.c')
-rw-r--r--src/glx/drisw_glx.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/glx/drisw_glx.c b/src/glx/drisw_glx.c
index 751626bf3b..5885b6635c 100644
--- a/src/glx/drisw_glx.c
+++ b/src/glx/drisw_glx.c
@@ -619,6 +619,7 @@ driswDestroyScreen(struct glx_screen *base)
psc->driScreen = NULL;
if (psc->driver)
dlclose(psc->driver);
+ free(psc);
}
#define SWRAST_DRIVER_NAME "swrast"