[ekiga] Fix crash when removing a registered account



commit 00a5e843a22bf406ef1eb3934f545603d3cbeecb
Author: Eugen Dedu <Eugen Dedu pu-pm univ-fcomte fr>
Date:   Thu Jul 26 16:12:04 2012 +0200

    Fix crash when removing a registered account
    
    Unsubscription was done in both remove and ~Account functions.

 lib/engine/components/opal/opal-account.cpp |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/lib/engine/components/opal/opal-account.cpp b/lib/engine/components/opal/opal-account.cpp
index 40df004..c2165a2 100644
--- a/lib/engine/components/opal/opal-account.cpp
+++ b/lib/engine/components/opal/opal-account.cpp
@@ -186,7 +186,7 @@ Opal::Account::Account (Ekiga::ServiceCore & _core,
 
 Opal::Account::~Account ()
 {
-  if (state == Registered)
+  if (!dead && state == Registered)
     endpoint->unsubscribe (*this, presentity);
 }
 



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