mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-30 08:51:10 +02:00
neutrino: destruct cpufreq if it was instantiated.
This commit is contained in:
@@ -3587,8 +3587,11 @@ void stop_daemons(bool stopall)
|
|||||||
printf("zapit shutdown done\n");
|
printf("zapit shutdown done\n");
|
||||||
CVFD::getInstance()->Clear();
|
CVFD::getInstance()->Clear();
|
||||||
if(stopall) {
|
if(stopall) {
|
||||||
if (cpuFreq)
|
if (cpuFreq) {
|
||||||
cpuFreq->SetCpuFreq(g_settings.cpufreq * 1000 * 1000);
|
cpuFreq->SetCpuFreq(g_settings.cpufreq * 1000 * 1000);
|
||||||
|
delete cpuFreq;
|
||||||
|
}
|
||||||
|
|
||||||
if (powerManager) {
|
if (powerManager) {
|
||||||
/* if we were in standby, leave it otherwise, the next
|
/* if we were in standby, leave it otherwise, the next
|
||||||
start of neutrino will fail in "_write_gxa" in
|
start of neutrino will fail in "_write_gxa" in
|
||||||
|
Reference in New Issue
Block a user