aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy
diff options
context:
space:
mode:
authorxclaesse <xclaesse@4ee84921-47dd-4033-b63a-18d7a039a3e4>2009-01-09 18:06:36 +0800
committerxclaesse <xclaesse@4ee84921-47dd-4033-b63a-18d7a039a3e4>2009-01-09 18:06:36 +0800
commitf57f877cd4ae07a90e93dc908f9baef2718ec2b0 (patch)
treecc292cef3f406e44943c05ed0883a9b120c83c8f /libempathy
parent94aba37cf10393f853650be76a07c8ee7712b34f (diff)
downloadgsoc2013-empathy-f57f877cd4ae07a90e93dc908f9baef2718ec2b0.tar
gsoc2013-empathy-f57f877cd4ae07a90e93dc908f9baef2718ec2b0.tar.gz
gsoc2013-empathy-f57f877cd4ae07a90e93dc908f9baef2718ec2b0.tar.bz2
gsoc2013-empathy-f57f877cd4ae07a90e93dc908f9baef2718ec2b0.tar.lz
gsoc2013-empathy-f57f877cd4ae07a90e93dc908f9baef2718ec2b0.tar.xz
gsoc2013-empathy-f57f877cd4ae07a90e93dc908f9baef2718ec2b0.tar.zst
gsoc2013-empathy-f57f877cd4ae07a90e93dc908f9baef2718ec2b0.zip
Set the right weak pointer.
git-svn-id: svn+ssh://svn.gnome.org/svn/empathy/trunk@2122 4ee84921-47dd-4033-b63a-18d7a039a3e4
Diffstat (limited to 'libempathy')
-rw-r--r--libempathy/empathy-contact-factory.c2
-rw-r--r--libempathy/empathy-idle.c2
-rw-r--r--libempathy/empathy-log-manager.c2
3 files changed, 3 insertions, 3 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;
diff --git a/libempathy/empathy-idle.c b/libempathy/empathy-idle.c
index 2751f7cfa..faa43c3fe 100644
--- a/libempathy/empathy-idle.c
+++ b/libempathy/empathy-idle.c
@@ -285,9 +285,9 @@ idle_constructor (GType type,
} else {
retval = G_OBJECT_CLASS (empathy_idle_parent_class)->constructor
(type, n_props, props);
- g_object_add_weak_pointer (retval, (gpointer *) &retval);
idle_singleton = EMPATHY_IDLE (retval);
+ g_object_add_weak_pointer (retval, (gpointer *) &idle_singleton);
}
return retval;
diff --git a/libempathy/empathy-log-manager.c b/libempathy/empathy-log-manager.c
index f3d17c248..39dd4f3a2 100644
--- a/libempathy/empathy-log-manager.c
+++ b/libempathy/empathy-log-manager.c
@@ -115,9 +115,9 @@ log_manager_constructor (GType type,
} else {
retval = G_OBJECT_CLASS (empathy_log_manager_parent_class)->constructor
(type, n_props, props);
- g_object_add_weak_pointer (retval, (gpointer *) &retval);
manager_singleton = EMPATHY_LOG_MANAGER (retval);
+ g_object_add_weak_pointer (retval, (gpointer *) &manager_singleton);
}
return retval;