mirror of
https://github.com/lightpanda-io/browser.git
synced 2026-02-04 14:33:47 +00:00
Don't dupe StartupData, use what v8 gives us directly.
This commit is contained in:
@@ -86,8 +86,8 @@ pub fn init(allocator: Allocator, config: Config) !*App {
|
||||
app.platform = try Platform.init();
|
||||
errdefer app.platform.deinit();
|
||||
|
||||
app.snapshot = try Snapshot.load(allocator);
|
||||
errdefer app.snapshot.deinit(allocator);
|
||||
app.snapshot = try Snapshot.load();
|
||||
errdefer app.snapshot.deinit();
|
||||
|
||||
app.app_dir_path = getAndMakeAppDir(allocator);
|
||||
|
||||
@@ -112,7 +112,7 @@ pub fn deinit(self: *App) void {
|
||||
self.telemetry.deinit();
|
||||
self.notification.deinit();
|
||||
self.http.deinit();
|
||||
self.snapshot.deinit(allocator);
|
||||
self.snapshot.deinit();
|
||||
self.platform.deinit();
|
||||
|
||||
allocator.destroy(self);
|
||||
|
||||
Reference in New Issue
Block a user