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

tfunction 无法自动回收的问题。 #681

Open
jackfong66 opened this issue Nov 30, 2023 · 0 comments
Open

tfunction 无法自动回收的问题。 #681

jackfong66 opened this issue Nov 30, 2023 · 0 comments

Comments

@jackfong66
Copy link

1,C++ Delegate
DECLARE_DYNAMIC_DELEGATE_OneParam(FTestFunction, UObjectt*, DataObject);
2,C++函数
void GetObject(FTestFunction Func);
3,Lua调用
XX:GetObject(function(obj)
--todo
end)
每次调用GetObject会产生一个LuaDelegateHandler对象, 并且不会被释放。
FDelegateRegistry::OnPostGarbageCollect()中的释放逻辑 似乎并没有考虑这种情况

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant