Make sure all native resources get freed on exit
This commit is contained in:
parent
07c55f321f
commit
d56b34de3b
11 changed files with 56 additions and 17 deletions
|
@ -19,6 +19,9 @@ PowerMonitor::PowerMonitor() {
|
|||
}
|
||||
|
||||
PowerMonitor::~PowerMonitor() {
|
||||
}
|
||||
|
||||
void PowerMonitor::Destroy() {
|
||||
base::PowerMonitor::Get()->RemoveObserver(this);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue