diff options
author | George Hazan <george.hazan@gmail.com> | 2014-07-18 21:36:29 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2014-07-18 21:36:29 +0000 |
commit | 5142c25982c01f602268f647749957bcf63f7380 (patch) | |
tree | 77b8088067baa66a823982deb1fda5ac3158b099 /plugins/Popup/src/popup_wnd2.cpp | |
parent | 62b1f33833883602232b40799f4ca42444e5f928 (diff) |
some resource leaks fixed
git-svn-id: http://svn.miranda-ng.org/main/trunk@9855 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Popup/src/popup_wnd2.cpp')
-rw-r--r-- | plugins/Popup/src/popup_wnd2.cpp | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/plugins/Popup/src/popup_wnd2.cpp b/plugins/Popup/src/popup_wnd2.cpp index cbfc012529..cb2b350861 100644 --- a/plugins/Popup/src/popup_wnd2.cpp +++ b/plugins/Popup/src/popup_wnd2.cpp @@ -166,13 +166,14 @@ PopupWnd2::~PopupWnd2() if (m_hwnd)
SetWindowLongPtr(m_hwnd, GWLP_USERDATA, 0);
- if (m_bmp) delete m_bmp;
- if (m_bmpBase) delete m_bmpBase;
- if (m_bmpAnimate) delete m_bmpAnimate;
- if (m_mtText) MText.Destroy(m_mtText);
+ delete m_bmp;
+ delete m_bmpBase;
+ delete m_bmpAnimate;
+ delete m_avatar;
+ delete []m_actions;
+
+ if (m_mtText) MText.Destroy(m_mtText);
if (m_mtTitle) MText.Destroy(m_mtTitle);
- if (m_avatar) delete m_avatar;
- if (m_actions) delete [] m_actions;
}
void PopupWnd2::startThread()
|