From a8d277be183a2d41b9dd10b3b8b23ef1ddb8d65e Mon Sep 17 00:00:00 2001 From: Nipun Garg Date: Thu, 18 Jul 2019 19:10:54 +0530 Subject: HDB: Fix delete command for _dir --- engines/hdb/file-manager.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'engines/hdb') diff --git a/engines/hdb/file-manager.cpp b/engines/hdb/file-manager.cpp index d75c1121ad..7e1e68e9ea 100644 --- a/engines/hdb/file-manager.cpp +++ b/engines/hdb/file-manager.cpp @@ -29,12 +29,12 @@ namespace HDB { FileMan::FileMan() { _mpcFile = new Common::File; - for (uint i = 0; i < _dir.size(); i++) - delete _dir[i]; } FileMan::~FileMan() { delete _mpcFile; + for (uint i = 0; i < _dir.size(); i++) + delete _dir[i]; } bool FileMan::openMPC(const Common::String &filename) { -- cgit v1.2.3