Merge "frameworks/base: Fix to release references in ActivityManagerService" into gingerbread
This commit is contained in:
committed by
Android (Google) Code Review
commit
6eef0ca594
@ -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,
|
||||
|
Reference in New Issue
Block a user