summaryrefslogtreecommitdiff
path: root/plugins/TabSRMM/src/container.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/TabSRMM/src/container.cpp')
-rw-r--r--plugins/TabSRMM/src/container.cpp9
1 files changed, 1 insertions, 8 deletions
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);