From b7987d84c1de7c7f6c40b9995026009058d43ab3 Mon Sep 17 00:00:00 2001 From: WinterGrascph Date: Wed, 4 May 2016 11:16:41 +0200 Subject: DM: Fix memory leak in dm.cpp and gfx.cpp --- engines/dm/dm.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'engines/dm/dm.cpp') diff --git a/engines/dm/dm.cpp b/engines/dm/dm.cpp index 61e68dfaa7..24ebfbfff6 100644 --- a/engines/dm/dm.cpp +++ b/engines/dm/dm.cpp @@ -86,6 +86,10 @@ Common::Error DMEngine::run() { _displayMan->updateScreen(); } + + delete[] buffer; + delete[] cleanByteImg0Data; + return Common::kNoError; } -- cgit v1.2.3