mirror of
https://github.com/lightpanda-io/browser.git
synced 2026-02-04 14:33:47 +00:00
use temporary handlescope to deinit inspector
This commit is contained in:
@@ -63,6 +63,10 @@ pub fn init(allocator: Allocator, isolate: v8.Isolate, ctx: anytype) !Inspector
|
|||||||
}
|
}
|
||||||
|
|
||||||
pub fn deinit(self: *const Inspector) void {
|
pub fn deinit(self: *const Inspector) void {
|
||||||
|
var temp_scope: v8.HandleScope = undefined;
|
||||||
|
v8.HandleScope.init(&temp_scope, self.isolate);
|
||||||
|
defer temp_scope.deinit();
|
||||||
|
|
||||||
self.session.deinit();
|
self.session.deinit();
|
||||||
self.inner.deinit();
|
self.inner.deinit();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user