package kit: JobQueue::Pop() fix invalid iterator access
This commit is contained in:
parent
f5821a1aee
commit
ab9a117918
@ -159,8 +159,9 @@ JobQueue::Pop()
|
||||
if (head == fQueuedJobs->end())
|
||||
return NULL;
|
||||
}
|
||||
BJob* job = *head;
|
||||
fQueuedJobs->erase(head);
|
||||
return *head;
|
||||
return job;
|
||||
}
|
||||
|
||||
return NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user