clean up chunk data before returning

This commit is contained in:
Gered 2012-12-22 18:16:18 -05:00
parent 488b6a50b2
commit d15f32b018

View file

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