diff options
Diffstat (limited to 'source/blender/compositor/operations')
-rw-r--r-- | source/blender/compositor/operations/COM_KeyingScreenOperation.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/source/blender/compositor/operations/COM_KeyingScreenOperation.cc b/source/blender/compositor/operations/COM_KeyingScreenOperation.cc index c34eaad87ef..aa92c5c0c2b 100644 --- a/source/blender/compositor/operations/COM_KeyingScreenOperation.cc +++ b/source/blender/compositor/operations/COM_KeyingScreenOperation.cc @@ -132,8 +132,7 @@ KeyingScreenOperation::TriangulationData *KeyingScreenOperation::build_voronoi_t return nullptr; } - triangulation = (TriangulationData *)MEM_callocN(sizeof(TriangulationData), - "keying screen triangulation data"); + triangulation = MEM_cnew<TriangulationData>("keying screen triangulation data"); sites = (VoronoiSite *)MEM_callocN(sizeof(VoronoiSite) * sites_total, "keyingscreen voronoi sites"); @@ -243,7 +242,7 @@ KeyingScreenOperation::TileData *KeyingScreenOperation::triangulate(const rcti * return nullptr; } - tile_data = (TileData *)MEM_callocN(sizeof(TileData), "keying screen tile data"); + tile_data = MEM_cnew<TileData>("keying screen tile data"); for (i = 0; i < triangulation->triangles_total; i++) { if (BLI_rcti_isect(rect, &triangulation->triangles_AABB[i], nullptr)) { |