aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy/empathy-contact-factory.c
diff options
context:
space:
mode:
Diffstat (limited to 'libempathy/empathy-contact-factory.c')
-rw-r--r--libempathy/empathy-contact-factory.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libempathy/empathy-contact-factory.c b/libempathy/empathy-contact-factory.c
index f7f701bea..412fd8669 100644
--- a/libempathy/empathy-contact-factory.c
+++ b/libempathy/empathy-contact-factory.c
@@ -147,9 +147,9 @@ contact_factory_constructor (GType type,
} else {
retval = G_OBJECT_CLASS (empathy_contact_factory_parent_class)->constructor
(type, n_props, props);
- g_object_add_weak_pointer (retval, (gpointer *) &retval);
factory_singleton = EMPATHY_CONTACT_FACTORY (retval);
+ g_object_add_weak_pointer (retval, (gpointer *) &factory_singleton);
}
return retval;