Commit 564b035d 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
parent 41d94c46
......@@ -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