summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/dri/intel
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2009-07-27 15:28:49 -0600
committerBrian Paul <brianp@vmware.com>2009-07-27 15:33:07 -0600
commit722d136f7bd3390c72bca175831647d93393e92d (patch)
treee09e4625bed9559172322ba3b8aabf3153b8d8c5 /src/mesa/drivers/dri/intel
parenta7427b0f7b2325b8dcc560d57cb894df25ebef93 (diff)
intel: Clean up leak of driver context structure on context destroy.
(cherry picked from commit ddef7dc87b2001fbe117ee5f24a0c645ee95a03c)
Diffstat (limited to 'src/mesa/drivers/dri/intel')
-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 cfd983d368..9db5b54643 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;
}
}