From ab063db34d60bdda6a683b13cef36d93ad6e760f Mon Sep 17 00:00:00 2001 From: Germano Cavalcante Date: Tue, 22 Jun 2021 08:12:59 -0300 Subject: Cleanup: deduplicate free code It is more appropriate that `depths` is freed in `ED_view3d_depths_free`. --- source/blender/editors/curve/editcurve_paint.c | 1 - 1 file changed, 1 deletion(-) (limited to 'source/blender/editors/curve') diff --git a/source/blender/editors/curve/editcurve_paint.c b/source/blender/editors/curve/editcurve_paint.c index 94c227dfa75..febcf83116b 100644 --- a/source/blender/editors/curve/editcurve_paint.c +++ b/source/blender/editors/curve/editcurve_paint.c @@ -624,7 +624,6 @@ static void curve_draw_exit(wmOperator *op) if (cdd->depths) { ED_view3d_depths_free(cdd->depths); - MEM_freeN(cdd->depths); } MEM_freeN(cdd); op->customdata = NULL; -- cgit v1.2.3