From 4eecd48c64792c327bb1e5e85f38b75717da0947 Mon Sep 17 00:00:00 2001 From: Colin Snover Date: Mon, 9 Jan 2017 22:57:59 -0600 Subject: SCI32: Remove unnecessary call to unalloc When the Resource is deleted, it will deallocate the memory, so it is not necessary to do that manually. --- engines/sci/resource_audio.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/engines/sci/resource_audio.cpp b/engines/sci/resource_audio.cpp index bd6eee3cca..f17a684cc9 100644 --- a/engines/sci/resource_audio.cpp +++ b/engines/sci/resource_audio.cpp @@ -987,9 +987,6 @@ void ResourceManager::changeAudioDirectory(const Common::String &path) { if (resource->_status == kResStatusEnqueued) { removeFromLRU(resource); } - if (resource->_status != kResStatusNoMalloc) { - resource->unalloc(); - } delete resource; _resMap.erase(resIt); } -- cgit v1.2.3