diff options
author | George Hazan <george.hazan@gmail.com> | 2023-11-04 17:43:45 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2023-11-04 17:43:45 +0300 |
commit | d601dcad8019dbf76ba4e61833be7d7a24f25d01 (patch) | |
tree | 69c808741f59e8d36c4122a75c4c479d8f6242ee | |
parent | 89adba5b627d14ee6a690be906b5371201d0e8c1 (diff) |
more for #3786
-rw-r--r-- | src/mir_core/src/Windows/CCtrlBase.cpp | 2 |
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);
}
|