Fix possible heap corruption in the MDL material loader.

git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@605 67173fc5-114c-0410-ac8e-9d2fd5bffc1f
pull/1/head
aramis_acg 2010-03-13 16:21:20 +00:00
parent 686f2655db
commit 844d814710
1 changed files with 4 additions and 1 deletions

View File

@ -206,7 +206,10 @@ void MDLImporter::CreateTexture_3DGS_MDL4(const unsigned char* szData,
delete[] pc; delete[] pc;
} }
} }
else delete pcNew; else {
pcNew->pcData = NULL;
delete pcNew;
}
return; return;
} }