xLua icon indicating copy to clipboard operation
xLua copied to clipboard

lua用getcomponent访问时objectpool会有残留的对象引用,导致内存泄露

Open WuAlan opened this issue 2 years ago • 0 comments

复现代码: lua: self={} self.ShoppingMallPage = self.ShoppingMallPageGameObject:GetComponent("ShoppingMallPageComponent") self.ShoppingMallPage = nil self.ShoppingMallPageGameObject = nil self=nil collectgarbage()

objectpool.cs里还会残留ShoppingMallPageComponent的Type引用

WuAlan avatar Oct 11 '23 08:10 WuAlan