diff options
author | Germano Cavalcante <germano.costa@ig.com.br> | 2021-06-22 14:12:59 +0300 |
---|---|---|
committer | Germano Cavalcante <germano.costa@ig.com.br> | 2021-06-22 14:25:32 +0300 |
commit | ab063db34d60bdda6a683b13cef36d93ad6e760f (patch) | |
tree | ba982105300099bf04f4c4bd95bd57e2aad51445 /source/blender/editors/space_view3d/view3d_utils.c | |
parent | 3f1111b2a82fe975fdb55114943009e8ef0a2c43 (diff) |
Cleanup: deduplicate free code
It is more appropriate that `depths` is freed in `ED_view3d_depths_free`.
Diffstat (limited to 'source/blender/editors/space_view3d/view3d_utils.c')
-rw-r--r-- | source/blender/editors/space_view3d/view3d_utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/space_view3d/view3d_utils.c b/source/blender/editors/space_view3d/view3d_utils.c index c7da3378ae3..ea0b1f396c3 100644 --- a/source/blender/editors/space_view3d/view3d_utils.c +++ b/source/blender/editors/space_view3d/view3d_utils.c @@ -1019,7 +1019,7 @@ static float view_autodist_depth_margin(ARegion *region, const int mval[2], int ViewDepths depth_temp = {0}; view3d_depths_rect_create(region, &rect, &depth_temp); float depth_close = view3d_depth_near(&depth_temp); - ED_view3d_depths_free(&depth_temp); + MEM_SAFE_FREE(depth_temp.depths); return depth_close; } |