Cleanup: deduplicate free code

It is more appropriate that `depths` is freed in `ED_view3d_depths_free`.
This commit is contained in:
2021-06-22 08:12:59 -03:00
parent 3f1111b2a8
commit ab063db34d
5 changed files with 15 additions and 13 deletions

View File

@@ -1687,7 +1687,6 @@ static void object_transform_axis_target_free_data(wmOperator *op)
#ifdef USE_RENDER_OVERRIDE
if (xfd->depths) {
ED_view3d_depths_free(xfd->depths);
MEM_freeN(xfd->depths);
}
#endif