diff --git a/code/LWSLoader.cpp b/code/LWSLoader.cpp index ee1114a1f..01720f81d 100644 --- a/code/LWSLoader.cpp +++ b/code/LWSLoader.cpp @@ -338,8 +338,8 @@ void LWSImporter::BuildGraph(aiNode* nd, LWS::NodeDesc& src, std::vectormRootNode->mChildren[0]; - free(obj->mRootNode->mChildren); - free(obj->mRootNode); + obj->mRootNode->mChildren[0] = NULL; + delete obj->mRootNode; obj->mRootNode = newRootNode; obj->mRootNode->mTransformation.a4 = 0.0; obj->mRootNode->mTransformation.b4 = 0.0; diff --git a/workspaces/vc9/assimp.vcproj b/workspaces/vc9/assimp.vcproj index a63561ed5..0010c1203 100644 --- a/workspaces/vc9/assimp.vcproj +++ b/workspaces/vc9/assimp.vcproj @@ -2008,6 +2008,18 @@ > + + + + + +