Sculpt IPMask: Fix memory leak in step compute

This commit is contained in:
Pablo Dobarro 2021-03-16 20:26:55 +01:00
parent 57b7eba4b6
commit f791fc031e
1 changed files with 1 additions and 0 deletions

View File

@ -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;