diff --git a/main.h b/main.h --- a/main.h +++ b/main.h @@ -231,6 +231,7 @@ emit x11ConnectionChanged(); } void destroyAtoms(); + void destroyPlatform(); void setTerminating() { m_terminating = true; diff --git a/main.cpp b/main.cpp --- a/main.cpp +++ b/main.cpp @@ -161,14 +161,21 @@ { delete options; destroyAtoms(); + destroyPlatform(); } void Application::destroyAtoms() { delete atoms; atoms = nullptr; } +void Application::destroyPlatform() +{ + delete m_platform; + m_platform = nullptr; +} + void Application::resetCrashesCount() { crashes = 0;