Commit 5034c4fe authored by David Faure's avatar David Faure Committed by Jean-Baptiste Mardelle
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 8f521325
......@@ -203,6 +203,7 @@ void SlideshowClip::slotEnableThumbs(int state)
if (m_thumbJob) {
disconnect(m_thumbJob, &KIO::PreviewJob::gotPreview, this, &SlideshowClip::slotSetPixmap);
m_thumbJob = nullptr;
Supports Markdown
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