diff --git a/source/blender/editors/sculpt_paint/paint_image_proj.cc b/source/blender/editors/sculpt_paint/paint_image_proj.cc index b0eca325d6d..4aa12077d56 100644 --- a/source/blender/editors/sculpt_paint/paint_image_proj.cc +++ b/source/blender/editors/sculpt_paint/paint_image_proj.cc @@ -6075,10 +6075,10 @@ void paint_proj_stroke_done(void *ps_handle_p) ProjPaintState *ps; ps = ps_handle->ps_views[i]; project_paint_end(ps); - MEM_freeN(ps); + MEM_delete(ps); } - MEM_freeN(ps_handle); + MEM_delete(ps_handle); } /* use project paint to re-apply an image */ static int texture_paint_camera_project_exec(bContext *C, wmOperator *op)