summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/mir_core/src/Windows/CCtrlBase.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mir_core/src/Windows/CCtrlBase.cpp b/src/mir_core/src/Windows/CCtrlBase.cpp
index f9ac6413e0..164a34e09b 100644
--- a/src/mir_core/src/Windows/CCtrlBase.cpp
+++ b/src/mir_core/src/Windows/CCtrlBase.cpp
@@ -55,6 +55,8 @@ void CCtrlBase::OnDestroy()
int idx = arControls.indexOf(this);
if (idx != -1) {
Unsubclass();
+
+ mir_cslock lck(csCtrl);
arControls.remove(idx);
}