From: Maxim Mamontov Date: Wed, 29 Feb 2012 13:01:14 +0000 (+0200) Subject: Fix occasional crash on second and more reload in SMUX plugin X-Git-Tag: 2.409~417 X-Git-Url: https://git.stg.codes/stg.git/commitdiff_plain/b6f9db38b4be65b8893ae726a6d78e7ac657dc35?ds=inline;hp=-c Fix occasional crash on second and more reload in SMUX plugin --- b6f9db38b4be65b8893ae726a6d78e7ac657dc35 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);