diff options
| author | 2010-12-23 14:19:03 -0800 | |
|---|---|---|
| committer | 2010-12-23 14:19:03 -0800 | |
| commit | 6eef0ca59438a15d14be8a72b6b29f01da91a5b8 (patch) | |
| tree | e478f6a753f3435ceecce83d53643d148d088f40 | |
| parent | c6f2b3b302c06b8b7b81ec7e3a43a7df1813d0e0 (diff) | |
| parent | a207ce2abafc653dd362f563f5eb46c2dea51460 (diff) | |
Merge "frameworks/base: Fix to release references in ActivityManagerService" into gingerbread
| -rw-r--r-- | services/java/com/android/server/am/ActivityManagerService.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/services/java/com/android/server/am/ActivityManagerService.java b/services/java/com/android/server/am/ActivityManagerService.java index 6db45594e6bb..8358ea900574 100644 --- a/services/java/com/android/server/am/ActivityManagerService.java +++ b/services/java/com/android/server/am/ActivityManagerService.java @@ -9093,6 +9093,14 @@ public final class ActivityManagerService extends ActivityManagerNative if (DEBUG_SERVICE) Slog.v( TAG, "Removed service that is not running: " + r); } + + if (r.bindings.size() > 0) { + r.bindings.clear(); + } + + if (r.restarter instanceof ServiceRestarter) { + ((ServiceRestarter)r.restarter).setService(null); + } } ComponentName startServiceLocked(IApplicationThread caller, |