Commit 13120af5 authored by David Faure's avatar David Faure
Browse files

Fix PreviewJob memory leak

setAutoDelete(false) means that it won't be deleted when
merely doing kill() and forgetting the pointer (so manual "delete" in
this file won't happen).

Found by looking for code that uses KJob::setAutoDelete(false)
parent b1df9fd3
Pipeline #35642 passed with stage
in 28 minutes and 31 seconds
......@@ -203,6 +203,7 @@ void SlideshowClip::slotEnableThumbs(int state)
if (m_thumbJob) {
disconnect(m_thumbJob, &KIO::PreviewJob::gotPreview, this, &SlideshowClip::slotSetPixmap);
m_thumbJob = nullptr;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment