mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-06-15 12:35:25 +02:00
Break JS circular ref to help garbage collect
This commit is contained in:
parent
0b72e4dc60
commit
ec9d13700d
1 changed files with 3 additions and 0 deletions
|
@ -40,6 +40,9 @@ module.exports = {
|
||||||
response = { statusCode: httpRequest.status };
|
response = { statusCode: httpRequest.status };
|
||||||
}
|
}
|
||||||
callback(error, response, optionalCallbackParameter);
|
callback(error, response, optionalCallbackParameter);
|
||||||
|
|
||||||
|
// Break circular reference to httpRequest so the engine can garbage collect it.
|
||||||
|
httpRequest.onreadystatechange = null;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
if (typeof options === 'string') {
|
if (typeof options === 'string') {
|
||||||
|
|
Loading…
Reference in a new issue