mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-09-03 02:41:21 +02:00
neutrino.cpp: fix memleak with progressbar cache
detected with LeakSanitizer
This commit is contained in:
@@ -108,7 +108,7 @@
|
|||||||
#endif
|
#endif
|
||||||
#include "gui/themes.h"
|
#include "gui/themes.h"
|
||||||
#include "gui/timerlist.h"
|
#include "gui/timerlist.h"
|
||||||
|
#include "gui/components/cc_item_progressbar.h"
|
||||||
#include <system/ytcache.h>
|
#include <system/ytcache.h>
|
||||||
|
|
||||||
#include <hardware/audio.h>
|
#include <hardware/audio.h>
|
||||||
@@ -4115,6 +4115,9 @@ void CNeutrinoApp::ExitRun(int exit_code)
|
|||||||
dprintf(DEBUG_INFO, "exit\n");
|
dprintf(DEBUG_INFO, "exit\n");
|
||||||
OnShutDown();
|
OnShutDown();
|
||||||
|
|
||||||
|
//cleanup progress bar cache
|
||||||
|
CProgressBarCache::pbcClear();
|
||||||
|
|
||||||
StopSubtitles();
|
StopSubtitles();
|
||||||
stopPlayBack();
|
stopPlayBack();
|
||||||
|
|
||||||
@@ -4724,6 +4727,9 @@ int CNeutrinoApp::exec(CMenuTarget* parent, const std::string & actionKey)
|
|||||||
//usage of slots from any classes
|
//usage of slots from any classes
|
||||||
OnBeforeRestart();
|
OnBeforeRestart();
|
||||||
|
|
||||||
|
//cleanup progress bar cache
|
||||||
|
CProgressBarCache::pbcClear();
|
||||||
|
|
||||||
if (recordingstatus)
|
if (recordingstatus)
|
||||||
DisplayErrorMessage(g_Locale->getText(LOCALE_SERVICEMENU_RESTART_REFUSED_RECORDING));
|
DisplayErrorMessage(g_Locale->getText(LOCALE_SERVICEMENU_RESTART_REFUSED_RECORDING));
|
||||||
else {
|
else {
|
||||||
|
Reference in New Issue
Block a user