Skip to content

使用slua.createDelegate,将Delegate缓存在C++侧,当C++侧GC之后,delegate无效,ULuaDelegate被释放 #351

@JamesHuang0331

Description

@JamesHuang0331

Describe the bug
使用slua.createDelegate,将Delegate缓存在C++侧,当C++侧GC之后,delegate无效,ULuaDelegate被释放。

Version
1.3.2 release

To Reproduce
使用slua.createDelegate,将Delegate缓存在C++侧,当C++侧GC之后,delegate无效,ULuaDelegate被释放。

Expected behavior

Screenshots
在push ULuaDelegate的时候,这个ref判断是false,因此不会被添加REFERENCE标记。
image

Crash

Desktop (please complete the following information):

  • OS: Windows
    UE4.23

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions