diff options
author | Eric Anholt <[email protected]> | 2012-01-12 13:01:21 -0800 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2012-01-18 09:59:12 -0800 |
commit | cbd464a117317f276b65cbca69d6339166581bf7 (patch) | |
tree | 162aecab2dbde67d4c7d512819e12f1198e5ff0e /src/mesa/drivers/dri/i965 | |
parent | 7f278e15ad271daaa08dd2fef84cca5e344d5771 (diff) |
i965: Fix leak of the program cache BO on context destroy.
NOTE: This is a candidate for the 8.0 branch.
Diffstat (limited to 'src/mesa/drivers/dri/i965')
-rw-r--r-- | 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 3988625ea91..4ae8e1212ff 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; |