Skip to content

Commit 3d60c15

Browse files
committed
Maybe fixed a stack leak? Will review and PR tomorrow.
1 parent 2a68775 commit 3d60c15

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Source/Managers/LuaMan.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -684,6 +684,7 @@ int LuaStateWrapper::RunScriptConditionalTestFunctionObject(const LuabindObjectW
684684
status = -1;
685685
} else {
686686
returnParam = 1 == lua_toboolean(m_State, -1);
687+
lua_pop(m_State, 1);
687688
}
688689
}
689690
std::chrono::steady_clock::time_point end = std::chrono::steady_clock::now();

0 commit comments

Comments
 (0)