Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGermano Cavalcante <germano.costa@ig.com.br>2021-06-22 14:12:59 +0300
committerGermano Cavalcante <germano.costa@ig.com.br>2021-06-22 14:25:32 +0300
commitab063db34d60bdda6a683b13cef36d93ad6e760f (patch)
treeba982105300099bf04f4c4bd95bd57e2aad51445 /source/blender/editors/curve/editcurve_paint.c
parent3f1111b2a82fe975fdb55114943009e8ef0a2c43 (diff)
Cleanup: deduplicate free code
It is more appropriate that `depths` is freed in `ED_view3d_depths_free`.
Diffstat (limited to 'source/blender/editors/curve/editcurve_paint.c')
-rw-r--r--source/blender/editors/curve/editcurve_paint.c1
1 files changed, 0 insertions, 1 deletions
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;