projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0dfec4a
)
intel: Don't steal renderbuffer from caller in intel_miptree_create_for_region
author
Pierre Willenbrock
<pierre@pirsoft.de>
Fri, 12 Dec 2008 20:18:23 +0000
(21:18 +0100)
committer
Eric Anholt
<eric@anholt.net>
Mon, 15 Dec 2008 03:27:56 +0000
(19:27 -0800)
Fixes double-frees of some regions, once from the renderbuffer code and
once from the miptree itself.
Bug #19062
src/mesa/drivers/dri/intel/intel_mipmap_tree.c
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/dri/intel/intel_mipmap_tree.c
b/src/mesa/drivers/dri/intel/intel_mipmap_tree.c
index c677ddd63c52f204431910b72ae3d2b9b3e8f8dd..bf1c3f03f0e1983e3d09e8bb9e2fe3467e01c094 100644
(file)
--- a/
src/mesa/drivers/dri/intel/intel_mipmap_tree.c
+++ b/
src/mesa/drivers/dri/intel/intel_mipmap_tree.c
@@
-163,7
+163,7
@@
intel_miptree_create_for_region(struct intel_context *intel,
mt->pitch = region->pitch;
#endif
-
mt->region = region
;
+
intel_region_reference(&mt->region, region)
;
return mt;
}