fix: memory leak when finishing blocked mods job

Signed-off-by: flow <flowlnlnln@gmail.com>
This commit is contained in:
flow 2022-10-20 16:55:22 -03:00
parent 0a7383a4e1
commit 01b90809e8
No known key found for this signature in database
GPG Key ID: 8D0F221F0A59F469

View File

@ -66,7 +66,11 @@ void Flame::FileResolvingTask::netJobFinished()
} }
index++; index++;
} }
connect(job, &NetJob::finished, this, &Flame::FileResolvingTask::modrinthCheckFinished); connect(job, &NetJob::finished, this,
[this, &job] {
modrinthCheckFinished();
job->deleteLater();
});
job->start(); job->start();
} }