Skip to content

Commit

Permalink
不必要的Reset导致内存泄露,Release传入的地址是null
Browse files Browse the repository at this point in the history
  • Loading branch information
wusidn authored Feb 2, 2024
1 parent a2b4e18 commit 6325969
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 @@ -2604,7 +2604,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 6325969

Please sign in to comment.