Fixed Coverity reported issue. This fix addresses a memory leak.
CID 11847: Unused pointer value (UNUSED_VALUE) Pointer "node" returned by "lib3ds_node_new(LIB3DS_NODE_CAMERA)" is never used.
This commit is contained in:
parent
fbfc19d3ec
commit
9a8edde316
@ -166,7 +166,7 @@ lib3ds_node_new_mesh_instance(Lib3dsMesh *mesh, const char *instance_name, float
|
||||
|
||||
Lib3dsCameraNode*
|
||||
lib3ds_node_new_camera(Lib3dsCamera *camera) {
|
||||
Lib3dsNode *node = lib3ds_node_new(LIB3DS_NODE_CAMERA);
|
||||
Lib3dsNode *node;
|
||||
Lib3dsCameraNode *n;
|
||||
|
||||
assert(camera);
|
||||
|
Loading…
Reference in New Issue
Block a user