projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7f278e1
)
i965: Fix leak of the program cache BO on context destroy.
author
Eric Anholt
<eric@anholt.net>
Thu, 12 Jan 2012 21:01:21 +0000
(13:01 -0800)
committer
Eric Anholt
<eric@anholt.net>
Wed, 18 Jan 2012 17:59:12 +0000
(09:59 -0800)
NOTE: This is a candidate for the 8.0 branch.
src/mesa/drivers/dri/i965/brw_state_cache.c
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/dri/i965/brw_state_cache.c
b/src/mesa/drivers/dri/i965/brw_state_cache.c
index 3988625ea9189466bc75c86d7f3e31fafe5e9a4b..4ae8e1212ff9dc5de5bc41b3e84de11ccb7f9841 100644
(file)
--- 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;