summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2009-07-27 15:28:49 -0600
committerBrian Paul <[email protected]>2009-07-27 15:33:07 -0600
commit722d136f7bd3390c72bca175831647d93393e92d (patch)
treee09e4625bed9559172322ba3b8aabf3153b8d8c5 /src/mesa/drivers
parenta7427b0f7b2325b8dcc560d57cb894df25ebef93 (diff)
intel: Clean up leak of driver context structure on context destroy.
(cherry picked from commit ddef7dc87b2001fbe117ee5f24a0c645ee95a03c)
Diffstat (limited to 'src/mesa/drivers')
-rw-r--r--src/mesa/drivers/dri/intel/intel_context.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/intel/intel_context.c b/src/mesa/drivers/dri/intel/intel_context.c
index cfd983d3682..9db5b546433 100644
--- a/src/mesa/drivers/dri/intel/intel_context.c
+++ b/src/mesa/drivers/dri/intel/intel_context.c
@@ -804,6 +804,9 @@ intelDestroyContext(__DRIcontextPrivate * driContextPriv)
/* free the Mesa context */
_mesa_free_context_data(&intel->ctx);
+
+ FREE(intel);
+ driContextPriv->driverPrivate = NULL;
}
}