Cleanup: fix attr_nonnull error found by asan

This commit is contained in:
Chris Blackbourn 2022-08-10 16:55:43 +12:00
parent 1150dcf93e
commit 39f706a76c
1 changed files with 4 additions and 2 deletions

View File

@ -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);
}