Merge pull request #8343 from nextcloud/fixLeakingService
Avoid leaking AccountManagerService via InputStreamBinder
This commit is contained in:
commit
f6d14856a4
|
@ -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