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
This commit is contained in:
aramis_acg
2010-03-13 16:21:20 +00:00
parent 686f2655db
commit 844d814710

View File

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