[ekiga] Fix crash when removing a registered account
- From: Eugen Dedu <ededu src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ekiga] Fix crash when removing a registered account
- Date: Thu, 26 Jul 2012 14:13:16 +0000 (UTC)
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]