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



commit b620dff03d25d9be01687a65a821747f1d4b2812
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 59727e3..fd296eb 100644
--- a/lib/engine/components/opal/opal-account.cpp
+++ b/lib/engine/components/opal/opal-account.cpp
@@ -200,6 +200,11 @@ Opal::Account::Account (boost::shared_ptr<Opal::Sip::EndPoint> _sip_endpoint,
     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 ff7884a..fe01708 100644
--- a/lib/engine/components/opal/opal-account.h
+++ b/lib/engine/components/opal/opal-account.h
@@ -95,6 +95,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]