Fix destruction order to avoid memory leaks reported by VMA

This commit is contained in:
Guillaume Meunier
2024-01-28 11:33:33 +01:00
parent c0c0371dbc
commit 6976281322
5 changed files with 26 additions and 13 deletions
+1 -1
View File
@@ -125,7 +125,7 @@ class application : public singleton<application>
std::mutex scene_stack_lock;
std::vector<std::shared_ptr<scene>> scene_stack;
std::shared_ptr<scene> last_scene;
std::weak_ptr<scene> last_scene;
void loop();