Commit 0df2b730 authored by Ignat Semenov's avatar Ignat Semenov
Browse files

fix crash: delete the Dialog and its child ListView in the applet dtor

The ListView object ownership is transferred to Dialog upon creation, so
not deleting the Dialog object in the applet dtor results in a leaked
ListView. However, when the leaked ListView receives a repaint signal on
plasma theme change, the model pointer in that view is already invalid,
which leads to the crash in m_model->rowCount().

parent 1a3fc378
......@@ -626,6 +626,8 @@ void FolderView::configChanged()
if (m_dialog)
delete m_dialog;
delete m_newMenu;
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