Skip to content

Commit 57ee7ed

Browse files
committed
What is now causing this weird behavior
1 parent bc20fd9 commit 57ee7ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/lua_LuaThread.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ LUA_FUNCTION(LuaThread_SetValue)
122122
if (pKey)
123123
{
124124
shared_table.erase(pKey);
125-
SafeDelete(pKey);
125+
//SafeDelete(pKey); // Potential memory leak? idk but it causes weird behavior.
126126
SafeDelete(pVal);
127127
}
128128
shared_table_mutex.Unlock();

0 commit comments

Comments
 (0)