[Mesa-dev] [PATCH 4/7] i965: Fix leak of the program cache BO on context destroy.
Eric Anholt
eric at anholt.net
Thu Jan 12 13:47:11 PST 2012
NOTE: This is a candidate for the 8.0 branch.
---
src/mesa/drivers/dri/i965/brw_state_cache.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/src/mesa/drivers/dri/i965/brw_state_cache.c b/src/mesa/drivers/dri/i965/brw_state_cache.c
index 3988625..4ae8e12 100644
--- a/src/mesa/drivers/dri/i965/brw_state_cache.c
+++ b/src/mesa/drivers/dri/i965/brw_state_cache.c
@@ -386,6 +386,8 @@ brw_destroy_cache(struct brw_context *brw, struct brw_cache *cache)
DBG("%s\n", __FUNCTION__);
+ drm_intel_bo_unreference(cache->bo);
+ cache->bo = NULL;
brw_clear_cache(brw, cache);
free(cache->items);
cache->items = NULL;
--
1.7.7.3
More information about the mesa-dev
mailing list