clean up chunk data before returning
This commit is contained in:
parent
488b6a50b2
commit
d15f32b018
|
@ -270,5 +270,15 @@ BOOL ConvertToMeshFile(const std::string &meshFilename, const Ms3d *source, cons
|
||||||
|
|
||||||
fclose(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;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue