diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2021-02-14 12:16:46 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-14 12:16:46 +0100 |
commit | 4eae532921bcf9a44398cebf3b54f2a0890762c6 (patch) | |
tree | 633551f4c1dfd3994566a26ec51384193228756e | |
parent | ff9cd8d3740bab51521aacd6943cea207b457ad7 (diff) | |
parent | e57b8d79eca74b908220efa8a8331868f950cea1 (diff) |
Merge pull request #46009 from qarmin/xatlas_leak
Fix memory leak in Xatlas module
-rw-r--r-- | modules/xatlas_unwrap/register_types.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/xatlas_unwrap/register_types.cpp b/modules/xatlas_unwrap/register_types.cpp index 880fe2df61..fb4df10904 100644 --- a/modules/xatlas_unwrap/register_types.cpp +++ b/modules/xatlas_unwrap/register_types.cpp @@ -154,6 +154,7 @@ bool xatlas_mesh_lightmap_unwrap_callback(float p_texel_size, const float *p_ver float h = *r_size_hint_y; if (w == 0 || h == 0) { + xatlas::Destroy(atlas); return false; //could not bake because there is no area } |