mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-08-26 17:11:40 +00:00
terminal/snapshot: decode directly into pages
This commit is contained in:
@@ -194,12 +194,12 @@ pub const PageEntry = struct {
|
||||
const alloc = &page.string_alloc;
|
||||
switch (self.id) {
|
||||
.implicit => {},
|
||||
.explicit => |v| alloc.free(
|
||||
.explicit => |v| if (v.len > 0) alloc.free(
|
||||
page.memory,
|
||||
v.slice(page.memory),
|
||||
),
|
||||
}
|
||||
alloc.free(
|
||||
if (self.uri.len > 0) alloc.free(
|
||||
page.memory,
|
||||
self.uri.slice(page.memory),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user