Skip to content
Snippets Groups Projects
Commit d8a414d3 authored by Jiangyou Li's avatar Jiangyou Li Committed by jiangyou li
Browse files

Fix JobServiceContext leak issue

JobServiceContext will leak when fail to bindService.

issue: 291625922

test: monkey
Change-Id: Icca4aa1f1fe32b6f39d18f7ee819cc682cac6f18
parent a3cd5a9e
No related branches found
No related tags found
No related merge requests found
......@@ -331,6 +331,7 @@ public final class JobServiceContext implements ServiceConnection {
if (DEBUG) {
Slog.d(TAG, job.getServiceComponent().getShortClassName() + " unavailable.");
}
mContext.unbindService(this);
mRunningJob = null;
mRunningJobWorkType = WORK_TYPE_NONE;
mRunningCallback = null;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment