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,7 +165,8 @@ AnimationPackage::AnimationPackage()
AnimationPackage::~AnimationPackage()
{
m_resArchive->Destroy();
if (m_resArchive)
m_resArchive->Destroy();
PortabilityLayer::MemoryManager::GetInstance()->Release(m_images);
}