1
0
mirror of https://github.com/Ylianst/MeshAgent synced 2025-12-13 06:43:42 +00:00

Fixed reference leak

This commit is contained in:
Bryan Roe
2021-01-23 22:18:15 -08:00
parent 4be310f809
commit b8c4df02a7
2 changed files with 2 additions and 2 deletions

File diff suppressed because one or more lines are too long

View File

@@ -261,7 +261,7 @@ function Promise(promiseFunc)
{ {
// Save reference of this object // Save reference of this object
refTable[this._internal._hashCode()] = this._internal; refTable[this._internal._hashCode()] = this._internal;
this._internal.once('settled', function () { refTable[this._hashCode()] = null; }); this._internal.once('settled', function () { delete refTable[this._hashCode()]; });
} }
Object.defineProperty(this, "completed", { Object.defineProperty(this, "completed", {
get: function () get: function ()