diff --git a/src/neutrino.cpp b/src/neutrino.cpp index d32dcf636..57b3c8d2b 100644 --- a/src/neutrino.cpp +++ b/src/neutrino.cpp @@ -108,7 +108,7 @@ #endif #include "gui/themes.h" #include "gui/timerlist.h" - +#include "gui/components/cc_item_progressbar.h" #include #include @@ -4115,6 +4115,9 @@ void CNeutrinoApp::ExitRun(int exit_code) dprintf(DEBUG_INFO, "exit\n"); OnShutDown(); + //cleanup progress bar cache + CProgressBarCache::pbcClear(); + StopSubtitles(); stopPlayBack(); @@ -4724,6 +4727,9 @@ int CNeutrinoApp::exec(CMenuTarget* parent, const std::string & actionKey) //usage of slots from any classes OnBeforeRestart(); + //cleanup progress bar cache + CProgressBarCache::pbcClear(); + if (recordingstatus) DisplayErrorMessage(g_Locale->getText(LOCALE_SERVICEMENU_RESTART_REFUSED_RECORDING)); else {