From b6f9db38b4be65b8893ae726a6d78e7ac657dc35 Mon Sep 17 00:00:00 2001 From: Maxim Mamontov Date: Wed, 29 Feb 2012 15:01:14 +0200 Subject: [PATCH] Fix occasional crash on second and more reload in SMUX plugin --- projects/stargazer/plugins/other/smux/smux.cpp | 1 + projects/stargazer/plugins/other/smux/smux.h | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/projects/stargazer/plugins/other/smux/smux.cpp b/projects/stargazer/plugins/other/smux/smux.cpp index f1c94d11..551a28f1 100644 --- a/projects/stargazer/plugins/other/smux/smux.cpp +++ b/projects/stargazer/plugins/other/smux/smux.cpp @@ -473,4 +473,5 @@ while (it != notifiers.end()) it->GetUserPtr()->GetProperty().tariffName.DelAfterNotifier(&(*it)); ++it; } +notifiers.clear(); } diff --git a/projects/stargazer/plugins/other/smux/smux.h b/projects/stargazer/plugins/other/smux/smux.h index 24f7de32..adeb50af 100644 --- a/projects/stargazer/plugins/other/smux/smux.h +++ b/projects/stargazer/plugins/other/smux/smux.h @@ -65,7 +65,7 @@ public: smux(rvalue.smux), userPtr(rvalue.userPtr) {} void Notify(const std::string &, const std::string &); - USER_PTR GetUserPtr() { return userPtr; } + USER_PTR GetUserPtr() const { return userPtr; } private: CHG_AFTER_NOTIFIER & operator=(const CHG_AFTER_NOTIFIER & rvalue); -- 2.44.2