Commit f151d1a1 authored by Arjen Hiemstra's avatar Arjen Hiemstra
Browse files

Cleanup old controller if FaceLoader gets destroyed

Otherwise we can end up leaking the controller


(cherry picked from commit 564b035d)
parent f3f60ce2
......@@ -24,6 +24,10 @@ FaceLoader::~FaceLoader()
if (m_dataObject) {
m_dataObject->setFaceLoader(nullptr);
}
if (m_oldController) {
m_oldController->deleteLater();
}
}
PageDataObject *FaceLoader::dataObject() const
......
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