# workaround crash in aiReleaseImport due to an suspected bug in gcc. See http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52339. See assimp-discussions for the details.
git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@1184 67173fc5-114c-0410-ac8e-9d2fd5bffc1fpull/5/head
parent
34e7ce131b
commit
df13d315db
|
@ -267,7 +267,10 @@ void aiReleaseImport( const aiScene* pScene)
|
|||
}
|
||||
else {
|
||||
// deleting the Importer also deletes the scene
|
||||
delete priv->mOrigImporter;
|
||||
// Note: the reason that this is not written as 'delete priv->mOrigImporter'
|
||||
// is a suspected bug in gcc 4.4+ (http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52339)
|
||||
Importer* importer = priv->mOrigImporter;
|
||||
delete importer;
|
||||
}
|
||||
|
||||
ASSIMP_END_EXCEPTION_REGION(void);
|
||||
|
|
Loading…
Reference in New Issue