diff options
author | Campbell Barton <ideasman42@gmail.com> | 2020-08-11 10:11:22 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2020-08-11 10:11:22 +0300 |
commit | 15abd58b159fc823ead1c9b2784e5f220ee26715 (patch) | |
tree | 41d8543cba38dfa73a15316e63fbfb35b9582ba2 /source/blender/modifiers | |
parent | 90c6a38cbbc96beee7e212c2ae38fbefe5108c5c (diff) | |
parent | bb5cc3bccf4901a1759b171033147e717d9eb1c4 (diff) |
Merge branch 'blender-v2.90-release' into master
Diffstat (limited to 'source/blender/modifiers')
-rw-r--r-- | source/blender/modifiers/intern/MOD_datatransfer.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/modifiers/intern/MOD_datatransfer.c b/source/blender/modifiers/intern/MOD_datatransfer.c index 0b205ec4fc5..031b82fa89e 100644 --- a/source/blender/modifiers/intern/MOD_datatransfer.c +++ b/source/blender/modifiers/intern/MOD_datatransfer.c @@ -229,7 +229,9 @@ static Mesh *modifyMesh(ModifierData *md, const ModifierEvalContext *ctx, Mesh * &reports); if (BKE_reports_contain(&reports, RPT_ERROR)) { - BKE_modifier_set_error(md, "%s", BKE_reports_string(&reports, RPT_ERROR)); + const char *report_str = BKE_reports_string(&reports, RPT_ERROR); + BKE_modifier_set_error(md, "%s", report_str); + MEM_freeN((void *)report_str); } else if ((dtmd->data_types & DT_TYPE_LNOR) && !(me->flag & ME_AUTOSMOOTH)) { BKE_modifier_set_error((ModifierData *)dtmd, "Enable 'Auto Smooth' in Object Data Properties"); |