aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorXavier Claessens <xclaesse@src.gnome.org>2009-01-09 18:06:36 +0800
committerXavier Claessens <xclaesse@src.gnome.org>2009-01-09 18:06:36 +0800
commit7396241b0868b083cab53603135ecb0537c5a11d (patch)
treecc292cef3f406e44943c05ed0883a9b120c83c8f /src
parent5dadc0ac3a478376337e2d10dec4ade7d5b44998 (diff)
downloadgsoc2013-empathy-7396241b0868b083cab53603135ecb0537c5a11d.tar
gsoc2013-empathy-7396241b0868b083cab53603135ecb0537c5a11d.tar.gz
gsoc2013-empathy-7396241b0868b083cab53603135ecb0537c5a11d.tar.bz2
gsoc2013-empathy-7396241b0868b083cab53603135ecb0537c5a11d.tar.lz
gsoc2013-empathy-7396241b0868b083cab53603135ecb0537c5a11d.tar.xz
gsoc2013-empathy-7396241b0868b083cab53603135ecb0537c5a11d.tar.zst
gsoc2013-empathy-7396241b0868b083cab53603135ecb0537c5a11d.zip
Set the right weak pointer.
svn path=/trunk/; revision=2122
Diffstat (limited to 'src')
-rw-r--r--src/empathy-event-manager.c2
-rw-r--r--src/empathy-ft-manager.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/empathy-event-manager.c b/src/empathy-event-manager.c
index 398d8d9ff..23f80f7e8 100644
--- a/src/empathy-event-manager.c
+++ b/src/empathy-event-manager.c
@@ -401,9 +401,9 @@ event_manager_constructor (GType type,
} else {
retval = G_OBJECT_CLASS (empathy_event_manager_parent_class)->constructor
(type, n_props, props);
- g_object_add_weak_pointer (retval, (gpointer *) &retval);
manager_singleton = EMPATHY_EVENT_MANAGER (retval);
+ g_object_add_weak_pointer (retval, (gpointer *) &manager_singleton);
}
return retval;
diff --git a/src/empathy-ft-manager.c b/src/empathy-ft-manager.c
index 8cbfd8502..ee580b385 100644
--- a/src/empathy-ft-manager.c
+++ b/src/empathy-ft-manager.c
@@ -785,9 +785,9 @@ empathy_ft_manager_constructor (GType type,
{
retval = G_OBJECT_CLASS (empathy_ft_manager_parent_class)->constructor
(type, n_props, props);
- g_object_add_weak_pointer (retval, (gpointer *) &retval);
manager_singleton = EMPATHY_FT_MANAGER (retval);
+ g_object_add_weak_pointer (retval, (gpointer *) &manager_singleton);
}
return retval;