mirror of
https://github.com/servo/servo
synced 2026-05-13 10:27:03 +02:00
Instead of using raw pointer of JSAutoStructuredCloneBuffer, use its wrapper JSAutoStructuredCloneBufferWrapper, which implements the Drop trait that can prevent leakage when structured cloning fails. Testing: Refactoring. Existing tests should be enough. Fixes: #37966 --------- Signed-off-by: Kingsley Yung <kingsley@kkoyung.dev>