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:
@@ -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));
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user