embedded: fix core app init
parent
3c49d87751
commit
1979fb92f4
|
|
@ -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);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue