From c33daf26ea9f29d5b9e980c8c04322e88c7bbc98 Mon Sep 17 00:00:00 2001 From: Ingo Weinhold Date: Sun, 25 Aug 2013 17:05:00 +0200 Subject: [PATCH] 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. --- src/kits/package/JobQueue.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/kits/package/JobQueue.cpp b/src/kits/package/JobQueue.cpp index bd5bceb708..4726e88b1d 100644 --- a/src/kits/package/JobQueue.cpp +++ b/src/kits/package/JobQueue.cpp @@ -236,7 +236,8 @@ JobQueue::_RemoveDependantJobsOf(BJob* job) } catch (...) { } _RemoveDependantJobsOf(dependantJob); - delete job; + dependantJob->RemoveDependency(job); + delete dependantJob; } }