diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2018-05-09 13:33:21 +0300 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2018-05-09 13:33:21 +0300 |
commit | f3efa9e15f58d98087796feb263680deb5cd7047 (patch) | |
tree | 64f8108490faa85d9de6a01067bcd908a0128f9f | |
parent | b59b8124001182a40bf4aa271591d589b2d46cfa (diff) |
Fix (unreported) bug in BVHTree 'free tessfaces' flag setting.
Could lead to atempt to free NULL pointer, and/or memory leak.
-rw-r--r-- | source/blender/blenkernel/intern/bvhutils.c | 2 |
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; |