diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2022-10-24 11:33:09 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2022-10-24 11:33:09 +0200 |
commit | 45f285f3e31e3755bb77d48e0631b505860657c3 (patch) | |
tree | 30b03350c09106d5c7b06da20c9ed28f8c33070d /editor/app.cpp | |
parent | c8547d38a29bb4756e3351bdfa45ea72635286d8 (diff) |
a
Diffstat (limited to 'editor/app.cpp')
-rw-r--r-- | editor/app.cpp | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/editor/app.cpp b/editor/app.cpp index 6f8cbed8..80f7600c 100644 --- a/editor/app.cpp +++ b/editor/app.cpp @@ -8,7 +8,7 @@ namespace floormat { app::app() : - M{ floormat_main::create(*this, {})}, + M{floormat_main::create(*this, {})}, _floor1{loader.tile_atlas("floor-tiles", {44, 4})}, _floor2{loader.tile_atlas("metal1", {2, 2})}, _wall1{loader.tile_atlas("wood2", {1, 1})}, @@ -18,7 +18,6 @@ app::app() : app::~app() { - loader_::destroy(); } int app::exec() @@ -84,8 +83,14 @@ int app::run_from_argv(const int argc, const char* const* const argv) } } } - app application; - return application.exec(); + + int ret; + { + app application; + ret = application.exec(); + } + loader_::destroy(); + return ret; } #ifdef _MSC_VER |