Merge "Avoiding cyclic references when unbinding from a service"

This commit is contained in:
Dianne Hackborn
2011-01-07 00:43:15 -08:00
committed by Android Code Review

View File

@@ -9802,6 +9802,7 @@ public final class ActivityManagerService extends ActivityManagerNative
if (DEBUG_SERVICE) Slog.v(TAG, if (DEBUG_SERVICE) Slog.v(TAG,
"doneExecuting remove stopping " + r); "doneExecuting remove stopping " + r);
mStoppingServices.remove(r); mStoppingServices.remove(r);
r.bindings.clear();
} }
updateOomAdjLocked(r.app); updateOomAdjLocked(r.app);
} }