Switch job handling to use shared pointers instead of raw pointers

Clarifies memory management around allocation of job_ts
This commit is contained in:
ridiculousfish
2017-01-26 14:47:32 -08:00
parent 1d9cc12984
commit 14fb38f952
8 changed files with 58 additions and 67 deletions

View File

@@ -2184,7 +2184,7 @@ static void handle_end_loop() {
}
bool bg_jobs = false;
while (job_t *j = jobs.next()) {
while (const job_t *j = jobs.next()) {
if (!job_is_completed(j)) {
bg_jobs = true;
break;