Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Montagne <montagne29@wanadoo.fr>2018-05-09 13:33:21 +0300
committerBastien Montagne <montagne29@wanadoo.fr>2018-05-09 13:33:21 +0300
commitf3efa9e15f58d98087796feb263680deb5cd7047 (patch)
tree64f8108490faa85d9de6a01067bcd908a0128f9f /source/blender/blenkernel/intern/bvhutils.c
parentb59b8124001182a40bf4aa271591d589b2d46cfa (diff)
Fix (unreported) bug in BVHTree 'free tessfaces' flag setting.
Could lead to atempt to free NULL pointer, and/or memory leak.
Diffstat (limited to 'source/blender/blenkernel/intern/bvhutils.c')
-rw-r--r--source/blender/blenkernel/intern/bvhutils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/bvhutils.c b/source/blender/blenkernel/intern/bvhutils.c
index 0240bb4b624..3c0f38939fe 100644
--- a/source/blender/blenkernel/intern/bvhutils.c
+++ b/source/blender/blenkernel/intern/bvhutils.c
@@ -1132,7 +1132,7 @@ BVHTree *bvhtree_from_mesh_get(
data->looptri = looptri;
data->vert_allocated = vert_allocated;
data->edge_allocated = edge_allocated;
- data->edge_allocated = edge_allocated;
+ data->face_allocated = face_allocated;
data->loop_allocated = loop_allocated;
data->looptri_allocated = looptri_allocated;