mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-24 20:56:08 +03:00
terminal/kitty-gfx: loading non-chunked image takes data slice ownership
This commit is contained in:
@ -221,7 +221,11 @@ fn loadAndAddImage(
|
||||
}
|
||||
|
||||
break :img try chunk.complete(alloc);
|
||||
} else try Image.load(alloc, cmd);
|
||||
} else img: {
|
||||
const img = try Image.load(alloc, cmd);
|
||||
_ = cmd.toOwnedData();
|
||||
break :img img;
|
||||
};
|
||||
errdefer img.deinit(alloc);
|
||||
|
||||
// If the image has no ID, we assign one
|
||||
|
Reference in New Issue
Block a user