From 04992f2bc8fc5a46d0dc6ada4f155270b54e4775 Mon Sep 17 00:00:00 2001 From: "alexey.lysiuk" Date: Sat, 20 Jun 2020 11:34:04 +0300 Subject: [PATCH] - fixed leaking full VM frames https://forum.zdoom.org/viewtopic.php?t=69055 --- src/common/scripting/jit/jit.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/scripting/jit/jit.cpp b/src/common/scripting/jit/jit.cpp index 18ccb92464..6d141e652d 100644 --- a/src/common/scripting/jit/jit.cpp +++ b/src/common/scripting/jit/jit.cpp @@ -390,7 +390,7 @@ static void PopFullVMFrame(VMFrameStack *stack) void JitCompiler::EmitPopFrame() { - if (sfunc->SpecialInits.Size() != 0 || sfunc->NumRegS != 0) + if (sfunc->SpecialInits.Size() != 0 || sfunc->NumRegS != 0 || sfunc->ExtraSpace != 0) { auto popFrame = CreateCall(PopFullVMFrame); popFrame->setArg(0, stack);