embedded: fix core app init

pull/5509/head
Jeffrey C. Ollie 2025-02-05 15:04:28 -06:00 committed by Mitchell Hashimoto
parent 3c49d87751
commit 1979fb92f4
1 changed files with 1 additions and 0 deletions

View File

@ -1318,6 +1318,7 @@ pub const CAPI = struct {
config: *const Config, config: *const Config,
) !*App { ) !*App {
var core_app = try global.alloc.create(CoreApp); var core_app = try global.alloc.create(CoreApp);
try core_app.init(global.alloc);
errdefer { errdefer {
core_app.deinit(); core_app.deinit();
global.alloc.destroy(core_app); global.alloc.destroy(core_app);