commit bc072c2d2e3fa688454936adc396e64031558650
parent ade29dc8036707a02ba0d90b8146c227084df41d
Author: Vincent Forest <vincent.forest@meso-star.com>
Date: Wed, 4 Jan 2017 11:58:51 +0100
Fix the score_node_geometry_setup function
Memory was wrongly managed leading to invalid memory read.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/core/solstice_core_node.c b/src/core/solstice_core_node.c
@@ -204,7 +204,7 @@ score_node_geometry_setup
res = sanim_node_initialize(node->device->allocator, &node->anim);
if (res != RES_OK) goto error;
node->data.geometry_node.solver_instance = instance;
- SSOL(instance_ref_put(instance));
+ SSOL(instance_ref_get(instance));
exit:
return res;
error: