aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSjoerd Simons <sjoerd.simons@collabora.co.uk>2009-07-23 02:28:28 +0800
committerSjoerd Simons <sjoerd.simons@collabora.co.uk>2009-07-23 02:28:28 +0800
commitb50b7039d3b52f33df94e5a3526d9f43a51401ad (patch)
tree16f4a27aae176db0f3c17948c24dbd06cca5aec1
parentf3e15cee01791e3e6a4b624450fea6167aa02c31 (diff)
downloadgsoc2013-empathy-b50b7039d3b52f33df94e5a3526d9f43a51401ad.tar
gsoc2013-empathy-b50b7039d3b52f33df94e5a3526d9f43a51401ad.tar.gz
gsoc2013-empathy-b50b7039d3b52f33df94e5a3526d9f43a51401ad.tar.bz2
gsoc2013-empathy-b50b7039d3b52f33df94e5a3526d9f43a51401ad.tar.lz
gsoc2013-empathy-b50b7039d3b52f33df94e5a3526d9f43a51401ad.tar.xz
gsoc2013-empathy-b50b7039d3b52f33df94e5a3526d9f43a51401ad.tar.zst
gsoc2013-empathy-b50b7039d3b52f33df94e5a3526d9f43a51401ad.zip
Ensure EmpathyConnectionManagers stays alive when still emitting signals
-rw-r--r--libempathy/empathy-connection-managers.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libempathy/empathy-connection-managers.c b/libempathy/empathy-connection-managers.c
index 150d6a43c..587a463a8 100644
--- a/libempathy/empathy-connection-managers.c
+++ b/libempathy/empathy-connection-managers.c
@@ -250,12 +250,14 @@ empathy_connection_managers_listed_cb (TpConnectionManager * const *cms,
}
out:
+ g_object_ref (weak_object);
if (!priv->ready)
{
priv->ready = TRUE;
g_object_notify (weak_object, "ready");
}
g_signal_emit (weak_object, signals[UPDATED], 0);
+ g_object_unref (weak_object);
}
void