App::unload() segfaults

This commit is contained in:
2025-03-14 15:58:01 -05:00
parent d53ace06cf
commit 0e48eef378
2 changed files with 3 additions and 2 deletions

View File

@@ -11,5 +11,6 @@ Print::~Print() {
void Print::run() { void Print::run() {
std::cout << "Print lib loaded and run!\n"; std::cout << "Print lib loaded and run!\n";
App::Get().unload(self); //App::Get().unload(self);
App::Get().end();
} }

View File

@@ -10,7 +10,7 @@ class App {
private: private:
static App* instance; static App* instance;
bool done; bool done = false;
std::list<Module*> modules; std::list<Module*> modules;