[ekiga/v4_0] Stop reacting to presence informations in Opal::Account::~Account



commit c0f903d1fd3c4749a25e3c25ae6e5ae5a8733114
Author: Julien Puydt <jpuydt free fr>
Date:   Mon Feb 11 16:20:30 2013 +0100

    Stop reacting to presence informations in Opal::Account::~Account

 lib/engine/components/opal/opal-account.cpp |    5 +++++
 lib/engine/components/opal/opal-account.h   |    2 ++
 2 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/lib/engine/components/opal/opal-account.cpp b/lib/engine/components/opal/opal-account.cpp
index c63a183..68c74ac 100644
--- a/lib/engine/components/opal/opal-account.cpp
+++ b/lib/engine/components/opal/opal-account.cpp
@@ -203,6 +203,11 @@ Opal::Account::Account (Ekiga::ServiceCore & _core,
     enable ();
 }
 
+Opal::Account::~Account ()
+{
+  if (presentity)
+    presentity->SetPresenceChangeNotifier (OpalPresentity::PresenceChangeNotifier(0));
+}
 
 const std::string Opal::Account::as_string () const
 {
diff --git a/lib/engine/components/opal/opal-account.h b/lib/engine/components/opal/opal-account.h
index 4d9ec66..ba908ca 100644
--- a/lib/engine/components/opal/opal-account.h
+++ b/lib/engine/components/opal/opal-account.h
@@ -85,6 +85,8 @@ public:
              bool enabled,
              unsigned timeout);
 
+    ~Account ();
+
     const std::string get_name () const;
 
     const std::string get_status () const;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]