Merge pull request #8343 from nextcloud/fixLeakingService

Avoid leaking AccountManagerService via InputStreamBinder
This commit is contained in:
Andy Scherzinger 2021-05-18 08:20:37 +02:00 committed by GitHub
commit f6d14856a4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}