mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2024-12-22 20:06:49 +01:00
Fix JavaScript callback memory leak
This commit is contained in:
parent
4b4e508dab
commit
d7575edb2d
@ -205,7 +205,9 @@ const PandemoniumJSWrapper = {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
const args = Array.from(arguments);
|
const args = Array.from(arguments);
|
||||||
func(p_ref, PandemoniumJSWrapper.get_proxied(args), args.length);
|
const argsProxy = new PandemoniumJSWrapper.MyProxy(args);
|
||||||
|
func(p_ref, argsProxy.get_id(), args.length);
|
||||||
|
argsProxy.unref();
|
||||||
};
|
};
|
||||||
id = PandemoniumJSWrapper.get_proxied(cb);
|
id = PandemoniumJSWrapper.get_proxied(cb);
|
||||||
return id;
|
return id;
|
||||||
|
Loading…
Reference in New Issue
Block a user