mirror of
https://github.com/Ylianst/MeshAgent
synced 2025-12-11 05:43:33 +00:00
Fixed reference leak
This commit is contained in:
@@ -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 ()
|
||||
|
||||
Reference in New Issue
Block a user