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:
authorJacques Lucke <jacques@blender.org>2021-12-17 17:40:06 +0300
committerJacques Lucke <jacques@blender.org>2021-12-17 17:42:28 +0300
commit77760194fe9ec67721ca7ea5ef111f734d2e240a (patch)
treee7d27d3b8cc639c4427cf6708edb1c3ebd32601c /source/blender/nodes/geometry/nodes/node_geo_viewer.cc
parenta3ad5abf2fe85d623f9e78fefc34e27bdc14632e (diff)
Cleanup: use new c++ guarded allocator api in some files
Diffstat (limited to 'source/blender/nodes/geometry/nodes/node_geo_viewer.cc')
-rw-r--r--source/blender/nodes/geometry/nodes/node_geo_viewer.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/source/blender/nodes/geometry/nodes/node_geo_viewer.cc b/source/blender/nodes/geometry/nodes/node_geo_viewer.cc
index 18f2fa4cd36..6110ee42eea 100644
--- a/source/blender/nodes/geometry/nodes/node_geo_viewer.cc
+++ b/source/blender/nodes/geometry/nodes/node_geo_viewer.cc
@@ -42,8 +42,7 @@ static void node_declare(NodeDeclarationBuilder &b)
static void node_init(bNodeTree *UNUSED(tree), bNode *node)
{
- NodeGeometryViewer *data = (NodeGeometryViewer *)MEM_callocN(sizeof(NodeGeometryViewer),
- __func__);
+ NodeGeometryViewer *data = MEM_cnew<NodeGeometryViewer>(__func__);
data->data_type = CD_PROP_FLOAT;
node->storage = data;