Fix #124398: new/free mismatch

Also see 06be295946.
This commit is contained in:
Jacques Lucke
2024-07-09 11:42:59 +02:00
parent 00ff0e275a
commit 165b60fd3e

View File

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