summaryrefslogtreecommitdiff
path: root/src/mir_app
diff options
context:
space:
mode:
Diffstat (limited to 'src/mir_app')
-rw-r--r--src/mir_app/src/options.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/mir_app/src/options.cpp b/src/mir_app/src/options.cpp
index d3f765f522..1e918e3dde 100644
--- a/src/mir_app/src/options.cpp
+++ b/src/mir_app/src/options.cpp
@@ -226,9 +226,7 @@ struct OptionsPageData : public MZeroedObject
~OptionsPageData()
{
- // if a dialog has window, it will be killed by WM_CLOSE event
- if (pDialog && !pDialog->GetHwnd())
- delete pDialog;
+ delete pDialog;
}
CDlgBase *pDialog;