aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk/empathy-location-manager.c
diff options
context:
space:
mode:
authorJonny Lamb <jonnylamb@gnome.org>2009-10-30 18:11:04 +0800
committerJonny Lamb <jonnylamb@gnome.org>2009-10-30 18:11:04 +0800
commitf2435188ed801faab430b40582e7dbd4cd8a0d56 (patch)
treee248fa0e5eb353c4823f75a15fc765aeda9d57a9 /libempathy-gtk/empathy-location-manager.c
parentd5f2776bacfe750f02782cef348e984ed68916af (diff)
downloadgsoc2013-empathy-f2435188ed801faab430b40582e7dbd4cd8a0d56.tar
gsoc2013-empathy-f2435188ed801faab430b40582e7dbd4cd8a0d56.tar.gz
gsoc2013-empathy-f2435188ed801faab430b40582e7dbd4cd8a0d56.tar.bz2
gsoc2013-empathy-f2435188ed801faab430b40582e7dbd4cd8a0d56.tar.lz
gsoc2013-empathy-f2435188ed801faab430b40582e7dbd4cd8a0d56.tar.xz
gsoc2013-empathy-f2435188ed801faab430b40582e7dbd4cd8a0d56.tar.zst
gsoc2013-empathy-f2435188ed801faab430b40582e7dbd4cd8a0d56.zip
location-manager: keep a ref to self during preparation to make sure we stay alive
Signed-off-by: Jonny Lamb <jonnylamb@gnome.org>
Diffstat (limited to 'libempathy-gtk/empathy-location-manager.c')
-rw-r--r--libempathy-gtk/empathy-location-manager.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libempathy-gtk/empathy-location-manager.c b/libempathy-gtk/empathy-location-manager.c
index 5bdb724b9..4ef27dba7 100644
--- a/libempathy-gtk/empathy-location-manager.c
+++ b/libempathy-gtk/empathy-location-manager.c
@@ -251,6 +251,7 @@ publish_to_all_am_prepared_cb (GObject *source_object,
g_list_free (accounts);
out:
+ g_object_unref (data->self);
g_slice_free (PublishToAllData, data);
}
@@ -262,7 +263,7 @@ publish_to_all_connections (EmpathyLocationManager *self,
PublishToAllData *data;
data = g_slice_new0 (PublishToAllData);
- data->self = self;
+ data->self = g_object_ref (self);
data->force_publication = force_publication;
tp_account_manager_prepare_async (priv->account_manager, NULL,