# 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-9d2fd5bffc1f
pull/5/head
aramis_acg 2012-02-23 14:10:18 +00:00
parent 34e7ce131b
commit df13d315db
1 changed files with 4 additions and 1 deletions

View File

@ -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);