From 7cb44a3c4447a149004189b046a67def1b65a356 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 7 Jul 2013 13:20:17 +0000 Subject: - SM cleaning; - code cleaning git-svn-id: http://svn.miranda-ng.org/main/trunk@5256 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/TabSRMM/src/container.cpp | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'plugins/TabSRMM/src/container.cpp') diff --git a/plugins/TabSRMM/src/container.cpp b/plugins/TabSRMM/src/container.cpp index 907bc53c3e..b40276d6fa 100644 --- a/plugins/TabSRMM/src/container.cpp +++ b/plugins/TabSRMM/src/container.cpp @@ -1910,14 +1910,7 @@ panel_found: RemoveContainerFromList(pContainer); if (PluginConfig.m_MathModAvail) CallService(MTH_HIDE, 0, 0); - { - SESSION_INFO *node = m_WndList; - while (node) { - if (node->pContainer == pContainer) - node->pContainer = 0; - node = node->next; - } - } + SM_RemoveContainer(pContainer); if (pContainer->cachedDC) { SelectObject(pContainer->cachedDC, pContainer->oldHBM); DeleteObject(pContainer->cachedHBM); -- cgit v1.2.3