Skip to content

Commit 36e5fd0

Browse files
修正:漏提的空指针判断
1 parent 7a2094c commit 36e5fd0

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

Plugins/UnLua/Source/UnLua/Private/Registries/DelegateRegistry.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ namespace UnLua
3030
for (auto& Pair : CachedHandlers)
3131
{
3232
const auto ToRelease = Pair.Value.Get();
33+
if (!ToRelease)
34+
continue;;
3335
ToRelease->Reset();
3436
Env->AutoObjectReference.Remove(ToRelease);
3537
}

0 commit comments

Comments
 (0)