summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/dri/intel
diff options
context:
space:
mode:
authorPierre Willenbrock <pierre@pirsoft.de>2008-12-12 21:18:23 +0100
committerEric Anholt <eric@anholt.net>2008-12-14 19:27:56 -0800
commite72a44215312ae1f3c812ba28e47b4aec3589de9 (patch)
treea5e5f07f31e4b6c6306512b2236cce6d1d77c740 /src/mesa/drivers/dri/intel
parent0dfec4ab615d45e298bf47737a348c32eebe2acf (diff)
intel: Don't steal renderbuffer from caller in intel_miptree_create_for_region
Fixes double-frees of some regions, once from the renderbuffer code and once from the miptree itself. Bug #19062
Diffstat (limited to 'src/mesa/drivers/dri/intel')
-rw-r--r--src/mesa/drivers/dri/intel/intel_mipmap_tree.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/intel/intel_mipmap_tree.c b/src/mesa/drivers/dri/intel/intel_mipmap_tree.c
index c677ddd63c..bf1c3f03f0 100644
--- 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;
}