]> git.stg.codes - stg.git/commitdiff
Fix occasional crash on second and more reload in SMUX plugin
authorMaxim Mamontov <faust.madf@gmail.com>
Wed, 29 Feb 2012 13:01:14 +0000 (15:01 +0200)
committerMaxim Mamontov <faust.madf@gmail.com>
Wed, 29 Feb 2012 13:01:14 +0000 (15:01 +0200)
projects/stargazer/plugins/other/smux/smux.cpp
projects/stargazer/plugins/other/smux/smux.h

index f1c94d11b2bc18023bc9b05c9ef264597dffc2ef..551a28f1f09369d4c1b2cfc8e56cc078bf9701f6 100644 (file)
@@ -473,4 +473,5 @@ while (it != notifiers.end())
     it->GetUserPtr()->GetProperty().tariffName.DelAfterNotifier(&(*it));
     ++it;
     }
+notifiers.clear();
 }
index 24f7de32a384d9ede2cbc142e5303ef288e99d63..adeb50af0e7cdb256d5c883303cda2ae42cc32ec 100644 (file)
@@ -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);