diff options
author | flow <flowlnlnln@gmail.com> | 2022-10-20 16:55:22 -0300 |
---|---|---|
committer | flow <flowlnlnln@gmail.com> | 2022-10-20 16:55:22 -0300 |
commit | 01b90809e8be2bef02644ba91feceb21b6f7cb8f (patch) | |
tree | dd845240229d20138e55b74912d875b1f8e16255 /launcher/modplatform/flame | |
parent | 0a7383a4e1c36b0dbbdc615433a30665d1777f64 (diff) | |
download | PrismLauncher-01b90809e8be2bef02644ba91feceb21b6f7cb8f.tar.gz PrismLauncher-01b90809e8be2bef02644ba91feceb21b6f7cb8f.tar.bz2 PrismLauncher-01b90809e8be2bef02644ba91feceb21b6f7cb8f.zip |
fix: memory leak when finishing blocked mods job
Signed-off-by: flow <flowlnlnln@gmail.com>
Diffstat (limited to 'launcher/modplatform/flame')
-rw-r--r-- | launcher/modplatform/flame/FileResolvingTask.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/launcher/modplatform/flame/FileResolvingTask.cpp b/launcher/modplatform/flame/FileResolvingTask.cpp index 1e7f5559..0b2431f7 100644 --- a/launcher/modplatform/flame/FileResolvingTask.cpp +++ b/launcher/modplatform/flame/FileResolvingTask.cpp @@ -66,7 +66,11 @@ void Flame::FileResolvingTask::netJobFinished() } index++; } - connect(job, &NetJob::finished, this, &Flame::FileResolvingTask::modrinthCheckFinished); + connect(job, &NetJob::finished, this, + [this, &job] { + modrinthCheckFinished(); + job->deleteLater(); + }); job->start(); } |