Avoid leaking AccountManagerService via InputStreamBinder
Signed-off-by: Unpublished <unpublished@gmx.net>
This commit is contained in:
parent
6239e608ae
commit
7632f12f98
|
@ -44,7 +44,7 @@ public class AccountManagerService extends Service {
|
|||
@Override
|
||||
public IBinder onBind(Intent intent) {
|
||||
if(mBinder == null) {
|
||||
mBinder = new InputStreamBinder(this, accountManager);
|
||||
mBinder = new InputStreamBinder(getApplicationContext(), accountManager);
|
||||
}
|
||||
return mBinder;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue