[Bf-blender-cvs] [f791fc031eb] sculpt-dev: Sculpt IPMask: Fix memory leak in step compute

Pablo Dobarro noreply at git.blender.org
Tue Mar 16 20:27:40 CET 2021


Commit: f791fc031eb9ffe2e7e2e2fb3f185d2f3fe639cb
Author: Pablo Dobarro
Date:   Tue Mar 16 20:26:55 2021 +0100
Branches: sculpt-dev
https://developer.blender.org/rBf791fc031eb9ffe2e7e2e2fb3f185d2f3fe639cb

Sculpt IPMask: Fix memory leak in step compute

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

M	source/blender/editors/sculpt_paint/sculpt_filter_mask.c

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

diff --git a/source/blender/editors/sculpt_paint/sculpt_filter_mask.c b/source/blender/editors/sculpt_paint/sculpt_filter_mask.c
index e6285aa4332..ba3c9f787d0 100644
--- a/source/blender/editors/sculpt_paint/sculpt_filter_mask.c
+++ b/source/blender/editors/sculpt_paint/sculpt_filter_mask.c
@@ -716,6 +716,7 @@ static float *sculpt_ipmask_compute_and_store_step(SculptSession *ss,
     MEM_freeN(current_mask);
     current_mask = MEM_dupallocN(next_mask);
   }
+  MEM_freeN(current_mask);
 
   /* Pack and store the delta step. */
   MaskFilterDeltaStep *delta_step;



More information about the Bf-blender-cvs mailing list