diff --git a/Software/PC_Application/mode.cpp b/Software/PC_Application/mode.cpp index 3f311c7..b8f6d7d 100644 --- a/Software/PC_Application/mode.cpp +++ b/Software/PC_Application/mode.cpp @@ -110,6 +110,13 @@ Mode::~Mode() modes[tabbar->currentIndex()]->activate(); } window->getCentral()->removeWidget(central); + delete central; + for(auto d : docks) { + delete d; + } + for(auto t : toolbars) { + delete t; + } } void Mode::activate()