From 662fa69a2dcc0c1403b1773262368943d5cacd52 Mon Sep 17 00:00:00 2001 From: Albert Astals Cid Date: Thu, 2 Nov 2017 17:47:35 +0100 Subject: [PATCH] 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 --- core/pagecontroller.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/core/pagecontroller.cpp b/core/pagecontroller.cpp index 36a8dfeb7..eb75c10b2 100644 --- a/core/pagecontroller.cpp +++ b/core/pagecontroller.cpp @@ -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"