diff options
author | George Hazan <ghazan@miranda.im> | 2017-03-02 14:20:15 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2017-03-02 14:20:15 +0300 |
commit | 5e244131bbe6ffd02982917ea26746a21b77fb94 (patch) | |
tree | 77bf1e0cda7d5d8a3eb59db908030557f7d3ef31 /src/mir_app | |
parent | ae93aa98b214f98a0e28df1bdaa8df18b3f6da02 (diff) |
fix for massive memory leak in options
Diffstat (limited to 'src/mir_app')
-rw-r--r-- | src/mir_app/src/options.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
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;
|