mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-29 08:21:07 +02:00
neutrino.cpp: fix memleak with progressbar cache
detected with LeakSanitizer
Origin commit data
------------------
Commit: 259d447181
Author: Thilo Graf <dbt@novatux.de>
Date: 2019-07-02 (Tue, 02 Jul 2019)
This commit is contained in:
@@ -109,7 +109,7 @@
|
||||
#endif
|
||||
#include "gui/themes.h"
|
||||
#include "gui/timerlist.h"
|
||||
|
||||
#include "gui/components/cc_item_progressbar.h"
|
||||
#include <system/ytcache.h>
|
||||
|
||||
#include <hardware/audio.h>
|
||||
@@ -4289,6 +4289,9 @@ void CNeutrinoApp::ExitRun(int exit_code)
|
||||
dprintf(DEBUG_INFO, "exit\n");
|
||||
OnShutDown();
|
||||
|
||||
//cleanup progress bar cache
|
||||
CProgressBarCache::pbcClear();
|
||||
|
||||
StopSubtitles();
|
||||
stopPlayBack();
|
||||
|
||||
@@ -4977,6 +4980,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 {
|
||||
|
Reference in New Issue
Block a user