- Bugfix: Fix two possible reasons for bug ID 3039342 : On skipping an invalid material description in obj-loader avoid creating aiMaterial instance. Release obj-specific material instances.
git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@1186 67173fc5-114c-0410-ac8e-9d2fd5bffc1f
This commit is contained in:
@@ -84,8 +84,8 @@ ObjFileParser::ObjFileParser(std::vector<char> &Data,const std::string &strModel
|
||||
// Destructor
|
||||
ObjFileParser::~ObjFileParser()
|
||||
{
|
||||
delete m_pModel->m_pDefaultMaterial;
|
||||
m_pModel->m_pDefaultMaterial = NULL;
|
||||
/*delete m_pModel->m_pDefaultMaterial;
|
||||
m_pModel->m_pDefaultMaterial = NULL;*/
|
||||
|
||||
delete m_pModel;
|
||||
m_pModel = NULL;
|
||||
|
||||
Reference in New Issue
Block a user