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:
authorChris Blackbourn <chrisbblend@gmail.com>2022-08-10 07:55:43 +0300
committerChris Blackbourn <chrisbblend@gmail.com>2022-08-10 07:55:43 +0300
commit39f706a76c1db12e4d6e9f89bc9ed0a522ec2562 (patch)
tree92135f5fef602cc1b0394dc86f26940b7699b1b0 /source/blender/geometry/intern/uv_parametrizer.cc
parent1150dcf93ee743fa1d7d1da72cc0f5f07cfd96bf (diff)
Cleanup: fix attr_nonnull error found by asan
Diffstat (limited to 'source/blender/geometry/intern/uv_parametrizer.cc')
-rw-r--r--source/blender/geometry/intern/uv_parametrizer.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/source/blender/geometry/intern/uv_parametrizer.cc b/source/blender/geometry/intern/uv_parametrizer.cc
index ae2794bf9bc..26de4679768 100644
--- a/source/blender/geometry/intern/uv_parametrizer.cc
+++ b/source/blender/geometry/intern/uv_parametrizer.cc
@@ -3733,8 +3733,10 @@ void GEO_uv_parametrizer_delete(ParamHandle *phandle)
BLI_memarena_free(phandle->polyfill_arena);
BLI_heap_free(phandle->polyfill_heap, NULL);
- BLI_rng_free(phandle->rng);
- phandle->rng = NULL;
+ if (phandle->rng) {
+ BLI_rng_free(phandle->rng);
+ phandle->rng = NULL;
+ }
MEM_freeN(phandle);
}