Fix crash on rotation jobs

We don't need to delete the threadweaver job, threadweaver does it by itself,
and if we call deleteLater it may happen that the main thread deletes it
and then when the threadweaver thread tries to call the delete things are
gone and it goes kaboom

BUGS: 382725
This commit is contained in:
Albert Astals Cid 2017-11-02 17:47:35 +01:00 committed by Albert Astals Cid
parent e7702e0a8c
commit 662fa69a2d

View file

@ -43,8 +43,6 @@ void PageController::imageRotationDone(const ThreadWeaver::JobPointer &j)
emit rotationFinished( job->page()->m_number, job->page()->m_page );
}
job->deleteLater();
}
#include "moc_pagecontroller_p.cpp"