am 6eef0ca5: Merge "frameworks/base: Fix to release references in ActivityManagerService" into gingerbread

* commit '6eef0ca59438a15d14be8a72b6b29f01da91a5b8':
  frameworks/base: Fix to release references in ActivityManagerService
This commit is contained in:
Dianne Hackborn
2010-12-23 14:22:32 -08:00
committed by Android Git Automerger

View File

@ -9120,6 +9120,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,