From fe5acac85c67b8e1bfe5a492313ab85c65d429a3 Mon Sep 17 00:00:00 2001 From: "[CST] Bas" Date: Tue, 13 Nov 2012 12:42:20 +0800 Subject: [PATCH] neutrino: destruct cpufreq if it was instantiated. Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/be3c098cb87150213e4ca49fe4a8d16e8e2cffd2 Author: [CST] Bas Date: 2012-11-13 (Tue, 13 Nov 2012) ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- src/neutrino.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/neutrino.cpp b/src/neutrino.cpp index 374637e97..c4a143e2c 100644 --- a/src/neutrino.cpp +++ b/src/neutrino.cpp @@ -3587,8 +3587,11 @@ void stop_daemons(bool stopall) printf("zapit shutdown done\n"); CVFD::getInstance()->Clear(); if(stopall) { - if (cpuFreq) + if (cpuFreq) { cpuFreq->SetCpuFreq(g_settings.cpufreq * 1000 * 1000); + delete cpuFreq; + } + if (powerManager) { /* if we were in standby, leave it otherwise, the next start of neutrino will fail in "_write_gxa" in