projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a7427b0
)
intel: Clean up leak of driver context structure on context destroy.
author
Brian Paul
<brianp@vmware.com>
Mon, 27 Jul 2009 21:28:49 +0000
(15:28 -0600)
committer
Brian Paul
<brianp@vmware.com>
Mon, 27 Jul 2009 21:33:07 +0000
(15:33 -0600)
(cherry picked from commit
ddef7dc87b2001fbe117ee5f24a0c645ee95a03c
)
src/mesa/drivers/dri/intel/intel_context.c
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/dri/intel/intel_context.c
b/src/mesa/drivers/dri/intel/intel_context.c
index cfd983d3682393857282e4b480eb114873ca4623..9db5b5464330979d57609aaae1f72251ffd46a5b 100644
(file)
--- 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;
}
}