From e5b2ff5c59096c6160bbdd85b968d12a4559b672 Mon Sep 17 00:00:00 2001 From: Deukhoofd Date: Sat, 27 Mar 2021 22:29:28 +0100 Subject: [PATCH] Fixes memory leaks in unit test. --- tests/ScriptTests/BaseScriptClassTests.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/ScriptTests/BaseScriptClassTests.cpp b/tests/ScriptTests/BaseScriptClassTests.cpp index 0e4bca4..3396cea 100644 --- a/tests/ScriptTests/BaseScriptClassTests.cpp +++ b/tests/ScriptTests/BaseScriptClassTests.cpp @@ -403,7 +403,9 @@ TEST_CASE("Add Volatile with return script function") { REQUIRE(ctx->GetReturnDWord() == 1); ctxPool->ReturnContextToPool(ctx); + delete mon; delete script; + delete mainLib; } #endif \ No newline at end of file