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:
authorMichael Kowalski <makowalski@nvidia.com>2022-09-12 19:46:27 +0300
committerMichael Kowalski <makowalski@nvidia.com>2022-09-12 19:46:27 +0300
commit54571003dc115233896df97c8d80a03f00fd8c14 (patch)
tree2fa4e29a7803f9a71438eadce33d7b9834e3e83e /source/blender/io
parent9088a1f4764f371f7f22384e7d7e2c8971d5c9f0 (diff)
Fix T100016: Memory leak in USD importer.
These changes were implemented by Sonny Campbell. Fixed the first issue by freeing the operator customdata when the import is cancelled. Fixed the second issue by using a character array instead of allocating new memory for the prim_path_mask. Differential Revision: https://developer.blender.org/D15781
Diffstat (limited to 'source/blender/io')
-rw-r--r--source/blender/io/usd/usd.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/io/usd/usd.h b/source/blender/io/usd/usd.h
index a07315d8b4e..3494d8ffdc3 100644
--- a/source/blender/io/usd/usd.h
+++ b/source/blender/io/usd/usd.h
@@ -52,7 +52,7 @@ struct USDImportParams {
bool import_materials;
bool import_meshes;
bool import_volumes;
- char *prim_path_mask;
+ char prim_path_mask[1024];
bool import_subdiv;
bool import_instance_proxies;
bool create_collection;