Skip to content

Commit

Permalink
[unreal]不必要的Reset导致内存泄露,Release传入的地址是null (#1652)
Browse files Browse the repository at this point in the history
  • Loading branch information
wusidn authored Feb 4, 2024
1 parent 3500dff commit eeb34bc
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion unreal/Puerts/Source/JsEnv/Private/JsEnvImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2652,7 +2652,6 @@ bool FJsEnvImpl::ClearDelegate(v8::Isolate* Isolate, v8::Local<v8::Context>& Con
if (Iter->second.Proxy.IsValid())
{
Iter->second.Proxy->JsFunction.Reset();
Iter->second.Proxy.Reset();
SysObjectRetainer.Release(Iter->second.Proxy.Get());
}

Expand Down

0 comments on commit eeb34bc

Please sign in to comment.