소스 검색

# 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
aramis_acg 13 년 전
부모
커밋
df13d315db
1개의 변경된 파일4개의 추가작업 그리고 1개의 파일을 삭제
  1. 4 1
      code/Assimp.cpp

+ 4 - 1
code/Assimp.cpp

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