mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-09-05 19:08:17 +00:00
embedded: fix core app init
This commit is contained in:

committed by
Mitchell Hashimoto

parent
3c49d87751
commit
1979fb92f4
@@ -1318,6 +1318,7 @@ pub const CAPI = struct {
|
||||
config: *const Config,
|
||||
) !*App {
|
||||
var core_app = try global.alloc.create(CoreApp);
|
||||
try core_app.init(global.alloc);
|
||||
errdefer {
|
||||
core_app.deinit();
|
||||
global.alloc.destroy(core_app);
|
||||
|
Reference in New Issue
Block a user