diff options
Diffstat (limited to 'engines/bladerunner/ui/kia.cpp')
-rw-r--r-- | engines/bladerunner/ui/kia.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/engines/bladerunner/ui/kia.cpp b/engines/bladerunner/ui/kia.cpp index 42aaf3c409..c889890276 100644 --- a/engines/bladerunner/ui/kia.cpp +++ b/engines/bladerunner/ui/kia.cpp @@ -110,6 +110,10 @@ KIA::KIA(BladeRunnerEngine *vm) { } KIA::~KIA() { + if (isOpen()) { + unload(); + } + _thumbnail.free(); delete _crimesSection; delete _suspectsSection; @@ -150,7 +154,7 @@ void KIA::open(KIASections sectionId) { return; } - if (!sectionId) { + if (sectionId == kKIASectionNone) { unload(); return; } |