mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-04-06 07:38:21 +00:00
apprt/embedded: fix ghostty_surface_free_text parameter mismatch
Fixes #12020 The C header declared ghostty_surface_free_text with both a ghostty_surface_t and ghostty_text_s* parameter, but the Zig implementation only accepted a *Text parameter. This caused the surface pointer to be interpreted as the text pointer, so the actual text allocation was never freed.
This commit is contained in:
@@ -1675,7 +1675,7 @@ pub const CAPI = struct {
|
||||
return true;
|
||||
}
|
||||
|
||||
export fn ghostty_surface_free_text(ptr: *Text) void {
|
||||
export fn ghostty_surface_free_text(_: *Surface, ptr: *Text) void {
|
||||
ptr.deinit();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user