i965: Fix leak of the program cache BO on context destroy.

NOTE: This is a candidate for the 8.0 branch.
This commit is contained in:
Eric Anholt
2012-01-12 13:01:21 -08:00
parent 7f278e15ad
commit cbd464a117
@@ -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;