diff options
| author | Gabriel Schneider <[email protected]> | 2026-06-30 20:29:43 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-06-30 22:21:44 -0300 |
| commit | f6089186cfe1517073fafc8979a7546ec773d6c1 (patch) | |
| tree | cfb474b5a5cff5d7197aa5084ea6013a0c53df6f /term.zig | |
| parent | 8b60c2c29c016c7db0fa6ee63769cea1defd9b3c (diff) | |
| download | pardes-f6089186cfe1517073fafc8979a7546ec773d6c1.tar.gz pardes-f6089186cfe1517073fafc8979a7546ec773d6c1.zip | |
stealing petsciinatorfull-prototype
Diffstat (limited to 'term.zig')
| -rw-r--r-- | term.zig | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -164,8 +164,9 @@ pub fn deinit(self: *Term, io: std.Io, gpa: std.mem.Allocator) void { for (f.redo.items) |s| gpa.free(s); f.undo.deinit(gpa); f.redo.deinit(gpa); - } else if (self.image) |iv| { + } else if (self.image) |*iv| { gpa.free(iv.path); + image_mod.deinitView(iv, gpa); } else { _ = self.reader.cancel(io) catch {}; self.pty.close(io); |
