Fix crash if a movie fails to load

This commit is contained in:
elasota
2020-03-14 00:00:38 -04:00
parent ed7f8783c0
commit 26bf033465

View File

@@ -165,6 +165,7 @@ AnimationPackage::AnimationPackage()
AnimationPackage::~AnimationPackage() AnimationPackage::~AnimationPackage()
{ {
if (m_resArchive)
m_resArchive->Destroy(); m_resArchive->Destroy();
PortabilityLayer::MemoryManager::GetInstance()->Release(m_images); PortabilityLayer::MemoryManager::GetInstance()->Release(m_images);
} }