projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cb4ef34
)
intel: Clean up leak of driver context structure on context destroy.
author
Eric Anholt
<eric@anholt.net>
Thu, 2 Jul 2009 20:19:11 +0000
(13:19 -0700)
committer
Eric Anholt
<eric@anholt.net>
Thu, 2 Jul 2009 21:07:10 +0000
(14:07 -0700)
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 33b2d0749959ee9d7594370f6f58bfb682388d45..ce9b118134781729b3b737b2a154109ff58dbfb6 100644
(file)
--- 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;
}
}