1
0
mirror of https://github.com/Ylianst/MeshAgent synced 2026-01-05 18:13:38 +00:00

Fixed cleanup to address deadlock that could happen on CoUninitialize() on Windows

This commit is contained in:
Bryan Roe
2021-10-30 19:48:40 -07:00
parent 85fb2f3e1f
commit 690b21de73
4 changed files with 95 additions and 55 deletions

View File

@@ -40,9 +40,8 @@ function createInstance_finalizer()
{
var tmp = marshalFunctions(this, IUnknownMethods);
tmp.Release(this);
ole32.CoUninitialize();
console.log('final');
console.info1('CoUninitialize()');
}
function createInstance(RFCLSID, RFIID, options)
{
@@ -131,6 +130,7 @@ function marshalInterface(arr)
{
args.push(arguments[i]);
}
obj.callbackDispatched = this.callbackDispatched;
return (this.obj.func.apply(obj, args));
}
});