summaryrefslogtreecommitdiff
path: root/core/dump.zig
diff options
context:
space:
mode:
Diffstat (limited to 'core/dump.zig')
-rw-r--r--core/dump.zig5
1 files changed, 5 insertions, 0 deletions
diff --git a/core/dump.zig b/core/dump.zig
index 7ce54bce..4fc7fc4d 100644
--- a/core/dump.zig
+++ b/core/dump.zig
@@ -577,6 +577,10 @@ fn loadAndRevive(gpa: std.mem.Allocator, opts: Options, bytes: []const u8, previ
var on_disk: OnDisk = @splat(false);
const p = try loadKnowing(gpa, opts, bytes, &notes, &on_disk);
errdefer p.deinit();
+ // The 9P state its requests made was its connections', which do not
+ // come with it (a client's join loads alone, and keeps it).
+ p.fs.forget(gpa);
+ for (p.panes) |slot| if (slot) |pane| pane.fs.deinit(gpa);
// Its kinds are this process's, not the dump's: the session's it
// replaces, or what the scan found (a dump of another session's).
p.kinds = if (previous) |old| old.kinds else .started(p.tape, opts.addons);
@@ -753,6 +757,7 @@ pub fn loadPane(p: *Pardes, id: usize, bytes: []const u8) !*pardes.panes.Pane {
pane.command_from = 0;
pane.places.from = 0;
pane.collapsed = false;
+ pane.fs.deinit(p.gpa);
pane.prompt_view = p.live;
try ensureKind(p, pane);
p.installPane(id, pane);