commit | 9c90a37c6e8885dfc7848330755401209b605ecd | [log] [tgz] |
---|---|---|
author | Mike Lockwood <lockwood@android.com> | Tue Apr 13 15:40:27 2010 -0400 |
committer | Mike Lockwood <lockwood@android.com> | Tue Apr 13 15:40:27 2010 -0400 |
tree | c76c332982ccea52eeb60b1d782a1c710af916ef | |
parent | 842d983cc3158a3de77a897d071b5b9c18dd2b55 [diff] [blame] |
Fix wakelock leak in PowerManagerService.sendNotificationLocked() Change-Id: Ia5f814fe81413dc5350faaf4c79cff47de62d0ed BUG: 2592894 Signed-off-by: Mike Lockwood <lockwood@android.com>
diff --git a/services/java/com/android/server/PowerManagerService.java b/services/java/com/android/server/PowerManagerService.java index 848997b..c9dd553 100644 --- a/services/java/com/android/server/PowerManagerService.java +++ b/services/java/com/android/server/PowerManagerService.java
@@ -1125,6 +1125,8 @@ mBroadcastQueue[0] = on ? 1 : 0; mBroadcastQueue[1] = -1; mBroadcastQueue[2] = -1; + mBroadcastWakeLock.release(); + mBroadcastWakeLock.release(); index = 0; } if (index == 1 && !on) {