[ekiga/gnome-2-26] Fixed crash in presence
- From: Julien Puydt <jpuydt src gnome org>
- To: svn-commits-list gnome org
- Subject: [ekiga/gnome-2-26] Fixed crash in presence
- Date: Wed, 3 Jun 2009 09:16:23 -0400 (EDT)
commit 2bb790cccd34a0a03051b769bb121a40c5c74e32
Author: Julien Puydt <jpuydt gnome org>
Date: Wed Jun 3 15:15:37 2009 +0200
Fixed crash in presence
The problem is that the Ekiga::URIPresentity objects are last to get disposed of... that's a shutdown problem which I thought was just theoretical -- and now we have a practical crash
---
lib/engine/presence/uri-presentity.cpp | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/lib/engine/presence/uri-presentity.cpp b/lib/engine/presence/uri-presentity.cpp
index ddaf972..a7a750b 100644
--- a/lib/engine/presence/uri-presentity.cpp
+++ b/lib/engine/presence/uri-presentity.cpp
@@ -50,7 +50,8 @@ Ekiga::URIPresentity::URIPresentity (Ekiga::ServiceCore &_core,
Ekiga::URIPresentity::~URIPresentity ()
{
gmref_ptr<Ekiga::PresenceCore> presence_core = core.get ("presence-core");
- presence_core->unfetch_presence (uri);
+ if (presence_core)
+ presence_core->unfetch_presence (uri);
}
const std::string
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]