Closed Brooooooklyn closed 2 weeks ago
There 2 leak points in the Image class.
Image
Env::create_reference
Ref::new
PromiseRaw::catch
main
This stack of pull requests is managed by Graphite. Learn more about stacking.
Join @Brooooooklyn and the rest of your teammates on Graphite
感谢修复,公司内部通过压测验证修复有效!☆( ̄▽ ̄)/$:*
There 2 leak points in the
Image
class.Env::create_reference
was wrong in NAPI-RS, related pr: https://github.com/napi-rs/napi-rs/pull/2347, change to theRef::new
can resolve it.PromiseRaw::catch
callback was leaked, it cause the wholeImage
objects not be GCed, it was fixed in https://github.com/napi-rs/napi-rs/pull/2348