From d466ec081a425ed17b9bc8363de0efb7fce8744b Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sat, 8 May 2021 09:22:08 +0200 Subject: [PATCH] - fixed incorrect order of resource deallocation in savegame reader. --- source/core/savegamehelp.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/core/savegamehelp.cpp b/source/core/savegamehelp.cpp index 9d6573417..2ff1fa7b4 100644 --- a/source/core/savegamehelp.cpp +++ b/source/core/savegamehelp.cpp @@ -145,8 +145,8 @@ bool ReadSavegame(const char* name) FSerializer arc; if (!arc.OpenReader((const char*)data, info->LumpSize)) { - delete savereader; info->Unlock(); + delete savereader; return false; } info->Unlock();