package kit: fix JobQueue::_RemoveDependantJobsOf()

* Delete the right job (the removed dependant job).
* Sever the depencency link between the jobs or the next iteration of
  the loop would process the same job again.
This commit is contained in:
Ingo Weinhold 2013-08-25 17:05:00 +02:00
parent ab9a117918
commit c33daf26ea

View File

@ -236,7 +236,8 @@ JobQueue::_RemoveDependantJobsOf(BJob* job)
} catch (...) {
}
_RemoveDependantJobsOf(dependantJob);
delete job;
dependantJob->RemoveDependency(job);
delete dependantJob;
}
}