]> git.0d.be Git - empathy.git/commitdiff
location-manager: keep a ref to self during preparation to make sure we stay alive
authorJonny Lamb <jonnylamb@gnome.org>
Fri, 30 Oct 2009 10:11:04 +0000 (10:11 +0000)
committerJonny Lamb <jonnylamb@gnome.org>
Fri, 30 Oct 2009 10:11:04 +0000 (10:11 +0000)
Signed-off-by: Jonny Lamb <jonnylamb@gnome.org>
libempathy-gtk/empathy-location-manager.c

index 5bdb724b9228f6edd8f0e5d4b8816527e32b2ee3..4ef27dba7f3b8762059617b654806f63c5ab4561 100644 (file)
@@ -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,