Fix memory leaks in system_server
unlink DeathRecipients in a whole bunch of places to avoid memory leaks
This commit is contained in:
@@ -709,7 +709,10 @@ class PowerManagerService extends IPowerManager.Stub implements LocalPowerManage
|
||||
p.awakeOnSet = true;
|
||||
}
|
||||
} else {
|
||||
mPokeLocks.remove(token);
|
||||
PokeLock rLock = mPokeLocks.remove(token);
|
||||
if (rLock != null) {
|
||||
token.unlinkToDeath(rLock, 0);
|
||||
}
|
||||
}
|
||||
|
||||
int oldPokey = mPokey;
|
||||
|
||||
Reference in New Issue
Block a user