Don't dupe StartupData, use what v8 gives us directly.

This commit is contained in:
Karl Seguin
2026-01-05 16:05:39 +08:00
parent b4f134bff6
commit 4720268426
4 changed files with 13 additions and 19 deletions

View File

@@ -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);