Commit: 921fc1e44cedd595b4048c6e7476cdf54817f5e5
Author: Michael Kowalski
Date:   Wed Dec 28 17:58:01 2022 -0500
Branches: universal-scene-description
https://developer.blender.org/rB921fc1e44cedd595b4048c6e7476cdf54817f5e5

USD export:  fix export parameter memory leak.

Now freeing default_prim_custom_kind export option string.

===================================================================

M       source/blender/io/usd/intern/usd_capi_export.cc

===================================================================

diff --git a/source/blender/io/usd/intern/usd_capi_export.cc 
b/source/blender/io/usd/intern/usd_capi_export.cc
index 8c724e6c0be..9e69f9f6bdb 100644
--- a/source/blender/io/usd/intern/usd_capi_export.cc
+++ b/source/blender/io/usd/intern/usd_capi_export.cc
@@ -572,6 +572,7 @@ static void export_endjob(void *customdata)
   MEM_freeN(data->params.default_prim_path);
   MEM_freeN(data->params.root_prim_path);
   MEM_freeN(data->params.material_prim_path);
+  MEM_freeN(data->params.default_prim_custom_kind);
 
   if (data->was_canceled && BLI_exists(data->filepath)) {
     BLI_delete(data->filepath, false, false);

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
List details, subscription details or unsubscribe:
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to