Commit 3e77fb9b authored by Scott Wheeler's avatar Scott Wheeler

Yay for the magic of QGuardedPtr. Make sure that we don't do double deletion

here.

BUG:96992

svn path=/trunk/kdemultimedia/juk/; revision=381297
parent a462a814
......@@ -221,7 +221,6 @@ CoverIconViewItem::~CoverIconViewItem()
kapp->processEvents();
delete m_job;
m_job = 0;
}
}
......@@ -234,7 +233,6 @@ void CoverIconViewItem::imageData(KIO::Job *, const QByteArray &data)
void CoverIconViewItem::imageResult(KIO::Job *job)
{
m_job = 0; // Job has deleted itself
if(job->error())
return;
......
......@@ -87,7 +87,7 @@ private slots:
private:
QByteArray m_buffer;
KIO::TransferJob *m_job;
QGuardedPtr<KIO::TransferJob> m_job;
};
#endif
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