aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2009-12-23 01:59:57 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2009-12-26 02:06:47 +0800
commitb2d926ba67fcb7bfbd7f5039e28e0d1bb5b2d6f0 (patch)
tree6ef12ef99525cca315426731e7e9b9f5f8a7980c /libempathy-gtk
parent9ee5a2d0ec80e655cb834f8f95603f572c2f87f9 (diff)
downloadgsoc2013-empathy-b2d926ba67fcb7bfbd7f5039e28e0d1bb5b2d6f0.tar
gsoc2013-empathy-b2d926ba67fcb7bfbd7f5039e28e0d1bb5b2d6f0.tar.gz
gsoc2013-empathy-b2d926ba67fcb7bfbd7f5039e28e0d1bb5b2d6f0.tar.bz2
gsoc2013-empathy-b2d926ba67fcb7bfbd7f5039e28e0d1bb5b2d6f0.tar.lz
gsoc2013-empathy-b2d926ba67fcb7bfbd7f5039e28e0d1bb5b2d6f0.tar.xz
gsoc2013-empathy-b2d926ba67fcb7bfbd7f5039e28e0d1bb5b2d6f0.tar.zst
gsoc2013-empathy-b2d926ba67fcb7bfbd7f5039e28e0d1bb5b2d6f0.zip
account-widget: presence_changed_cb: early return if widget has been destroyed
The callback needs to manipulate widgets but can't do it if the account widget has already been destroyed.
Diffstat (limited to 'libempathy-gtk')
-rw-r--r--libempathy-gtk/empathy-account-widget.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libempathy-gtk/empathy-account-widget.c b/libempathy-gtk/empathy-account-widget.c
index 4747c8c9e..9b82c3f2c 100644
--- a/libempathy-gtk/empathy-account-widget.c
+++ b/libempathy-gtk/empathy-account-widget.c
@@ -1308,6 +1308,9 @@ presence_changed_cb (TpAccountManager *manager,
{
EmpathyAccountWidgetPriv *priv = GET_PRIV (self);
+ if (priv->destroyed)
+ return;
+
if (state > TP_CONNECTION_PRESENCE_TYPE_OFFLINE)
{
/* We are online, display a Login button */