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:
Robert Osfield 2011-05-05 12:38:48 +00:00
parent fbfc19d3ec
commit 9a8edde316

View File

@ -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);