Merge "Fix: Double-free error on RemoteFillService"

This commit is contained in:
Treehugger Robot
2018-02-27 22:51:21 +00:00
committed by Gerrit Code Review

View File

@@ -342,7 +342,8 @@ final class RemoteFillService implements DeathRecipient {
@Override
public void onServiceConnected(ComponentName name, IBinder service) {
if (mDestroyed || !mBinding) {
mContext.unbindService(mServiceConnection);
// This is abnormal. Unbinding the connection has been requested already.
Slog.wtf(LOG_TAG, "onServiceConnected was dispatched after unbindService.");
return;
}
mBinding = false;