summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/intel
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2009-07-02 13:19:11 -0700
committerEric Anholt <[email protected]>2009-07-02 14:07:10 -0700
commitddef7dc87b2001fbe117ee5f24a0c645ee95a03c (patch)
treeb7e43734698f3bb6acb83fbd815c5ee4004ed623 /src/mesa/drivers/dri/intel
parentcb4ef34214d61fb48bdff689a85ea107060e061b (diff)
intel: Clean up leak of driver context structure on context destroy.
Diffstat (limited to 'src/mesa/drivers/dri/intel')
-rw-r--r--src/mesa/drivers/dri/intel/intel_context.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/intel/intel_context.c b/src/mesa/drivers/dri/intel/intel_context.c
index 33b2d074995..ce9b1181347 100644
--- a/src/mesa/drivers/dri/intel/intel_context.c
+++ b/src/mesa/drivers/dri/intel/intel_context.c
@@ -877,7 +877,8 @@ intelDestroyContext(__DRIcontextPrivate * driContextPriv)
/* free the Mesa context */
_mesa_free_context_data(&intel->ctx);
-
+ FREE(intel);
+ driContextPriv->driverPrivate = NULL;
}
}