neutrino: destruct cpufreq if it was instantiated.

Origin commit data
------------------
Branch: ni/coolstream
Commit: be3c098cb8
Author: [CST] Bas <bas@coolstreamtech.com>
Date: 2012-11-13 (Tue, 13 Nov 2012)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
[CST] Bas
2012-11-13 12:42:20 +08:00
parent 89ee212755
commit fe5acac85c

View File

@@ -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