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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user