Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Call Lua Ref Memory Leak #242

Open
darealcore opened this issue Dec 2, 2020 · 0 comments
Open

Call Lua Ref Memory Leak #242

darealcore opened this issue Dec 2, 2020 · 0 comments
Labels
wait-for-confirmation Checking if the issue is reproducible

Comments

@darealcore
Copy link

Hello i got Memory leak by calling lua functions

LuaCode: function onDraw() for i = 0, 20, 1 do local baseObject = BaseObject(0) end end

`void CScript::onDraw()
{

try
{
	auto oRef = luabridge::getGlobal(m_pState, "onDraw");
	if (oRef.isFunction())
	{
		oRef();
	}
}
catch (const luabridge::LuaException& e)
{
	std::cout << e.what() << std::endl;
}

}`

@dmitry-t dmitry-t added the wait-for-confirmation Checking if the issue is reproducible label Dec 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wait-for-confirmation Checking if the issue is reproducible
Projects
None yet
Development

No branches or pull requests

2 participants