From 5e244131bbe6ffd02982917ea26746a21b77fb94 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 2 Mar 2017 14:20:15 +0300 Subject: fix for massive memory leak in options --- src/mir_app/src/options.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') diff --git a/src/mir_app/src/options.cpp b/src/mir_app/src/options.cpp index 1514647c0b..e1a0fa1c97 100644 --- a/src/mir_app/src/options.cpp +++ b/src/mir_app/src/options.cpp @@ -226,6 +226,9 @@ struct OptionsPageData : public MZeroedObject ~OptionsPageData() { + // if a dialog has window, it will be killed by WM_CLOSE event + if (pDialog && !pDialog->GetHwnd()) + delete pDialog; } CDlgBase *pDialog; -- cgit v1.2.3