BGE: Fix issues with async libload.

This patch fixes:
- the call of LibFree on a unfinished loaded library;
- memory leak created on end of game : the async libraries are loaded but not converted, so not freed with the master scene.

Reviewers: campbellbarton, sybren, youle, hg1, moguri, lordloki

Reviewed By: moguri, lordloki

Differential Revision: https://developer.blender.org/D1571
This commit is contained in:
Porteries Tristan
2015-10-25 19:22:29 +01:00
parent 0d59acccd3
commit 06d2ad0185
7 changed files with 53 additions and 10 deletions

View File

@@ -1273,6 +1273,7 @@ void KX_KetsjiEngine::StopEngine()
{
if (m_bInitialized)
{
m_sceneconverter->FinalizeAsyncLoads();
if (m_animation_record)
{