aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy
diff options
context:
space:
mode:
authorXavier Claessens <xclaesse@src.gnome.org>2009-01-07 00:48:55 +0800
committerXavier Claessens <xclaesse@src.gnome.org>2009-01-07 00:48:55 +0800
commitff68f9120ec085ca97160b8919cfa4d0d3ce8371 (patch)
tree0e0fa8f1e110739a3a7b62bcdffbe42c159f497e /libempathy
parent4cf0b5533904f8da1a9108a64903a1fa6f4ce424 (diff)
downloadgsoc2013-empathy-ff68f9120ec085ca97160b8919cfa4d0d3ce8371.tar
gsoc2013-empathy-ff68f9120ec085ca97160b8919cfa4d0d3ce8371.tar.gz
gsoc2013-empathy-ff68f9120ec085ca97160b8919cfa4d0d3ce8371.tar.bz2
gsoc2013-empathy-ff68f9120ec085ca97160b8919cfa4d0d3ce8371.tar.lz
gsoc2013-empathy-ff68f9120ec085ca97160b8919cfa4d0d3ce8371.tar.xz
gsoc2013-empathy-ff68f9120ec085ca97160b8919cfa4d0d3ce8371.tar.zst
gsoc2013-empathy-ff68f9120ec085ca97160b8919cfa4d0d3ce8371.zip
Add a weak pointer ref inside the costructor.
svn path=/trunk/; revision=2080
Diffstat (limited to 'libempathy')
-rw-r--r--libempathy/empathy-account-manager.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libempathy/empathy-account-manager.c b/libempathy/empathy-account-manager.c
index aa45c3209..94f6e9102 100644
--- a/libempathy/empathy-account-manager.c
+++ b/libempathy/empathy-account-manager.c
@@ -441,6 +441,7 @@ do_constructor (GType type,
retval = G_OBJECT_CLASS (empathy_account_manager_parent_class)->constructor (type,
n_construct_params,
construct_params);
+ g_object_add_weak_pointer (retval, (gpointer *) &retval);
manager_singleton = EMPATHY_ACCOUNT_MANAGER (retval);
}
else