Skip to content

Commit

Permalink
[unity] bugfix: releaseJSObject does not run correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
zombieyang committed Aug 14, 2023
1 parent e40b97b commit bc319c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion unity/Assets/core/upm/Runtime/Src/Default/JsEnv.cs
Original file line number Diff line number Diff line change
Expand Up @@ -920,7 +920,7 @@ internal void ReleasePendingJSObjects()
for (int i = 0, l = JSObjRefKeyList.Count; i < l; i++)
{
var k = JSObjRefKeyList[i];
if (JSObjRefCount[k] <= 0) pendingRemovedList.Add(k);
if (JSObjRefCount[k] <= 0) pendingRemovedJsObjList.Add(k);
}
for(int i = 0; i < pendingRemovedJsObjList.Count; ++i)
{
Expand Down

0 comments on commit bc319c2

Please sign in to comment.