mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-25 13:16:11 +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);
|
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);
|
errdefer img.deinit(alloc);
|
||||||
|
|
||||||
// If the image has no ID, we assign one
|
// If the image has no ID, we assign one
|
||||||
|
Reference in New Issue
Block a user