From 0e48eef378ed408b7441dbc606cf8782a0b435b3 Mon Sep 17 00:00:00 2001 From: Nathan Date: Fri, 14 Mar 2025 15:58:01 -0500 Subject: [PATCH] App::unload() segfaults --- modules/print/src/print.cpp | 3 ++- src/App.h | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/modules/print/src/print.cpp b/modules/print/src/print.cpp index 0c5f6a1..27b6ae4 100644 --- a/modules/print/src/print.cpp +++ b/modules/print/src/print.cpp @@ -11,5 +11,6 @@ Print::~Print() { void Print::run() { std::cout << "Print lib loaded and run!\n"; - App::Get().unload(self); + //App::Get().unload(self); + App::Get().end(); } diff --git a/src/App.h b/src/App.h index 775309f..b8d75f9 100644 --- a/src/App.h +++ b/src/App.h @@ -10,7 +10,7 @@ class App { private: static App* instance; - bool done; + bool done = false; std::list modules;