1
0
mirror of https://github.com/Ylianst/MeshAgent synced 2025-12-11 05:43:33 +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

View File

@@ -261,7 +261,7 @@ function Promise(promiseFunc)
{
// Save reference of this object
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", {
get: function ()