clean up chunk data before returning
This commit is contained in:
parent
488b6a50b2
commit
d15f32b018
|
@ -269,6 +269,16 @@ BOOL ConvertToMeshFile(const std::string &meshFilename, const Ms3d *source, cons
|
|||
WriteChunk(animations, fp);
|
||||
|
||||
fclose(fp);
|
||||
|
||||
SAFE_DELETE(vertices);
|
||||
SAFE_DELETE(normals);
|
||||
SAFE_DELETE(texCoords);
|
||||
SAFE_DELETE(triangles);
|
||||
SAFE_DELETE(groups);
|
||||
SAFE_DELETE(joints);
|
||||
SAFE_DELETE(jointToVertices);
|
||||
SAFE_DELETE(keyframes);
|
||||
SAFE_DELETE(animations);
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
|
Reference in a new issue