提交 3fd81db5 编写于 作者: J johnche(车雄生)

xlua.release没处理反向映射map,不符合预期

上级 f814a1c9
......@@ -1224,7 +1224,11 @@ namespace XLua
int udata = LuaAPI.xlua_tocsobj_safe(L, index);
if (udata != -1)
{
objects.Replace(udata, null);
object o = objects.Replace(udata, null);
if (o != null && reverseMap.ContainsKey(o))
{
reverseMap.Remove(o);
}
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册