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;

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to