[empathy: 48/59] location-manager: keep a ref to self during preparation to make sure we stay alive
- From: Jonny Lamb <jonnylamb src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [empathy: 48/59] location-manager: keep a ref to self during preparation to make sure we stay alive
- Date: Mon, 2 Nov 2009 13:41:56 +0000 (UTC)
commit f2435188ed801faab430b40582e7dbd4cd8a0d56
Author: Jonny Lamb <jonnylamb gnome org>
Date: Fri Oct 30 10:11:04 2009 +0000
location-manager: keep a ref to self during preparation to make sure we stay alive
Signed-off-by: Jonny Lamb <jonnylamb gnome org>
libempathy-gtk/empathy-location-manager.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/libempathy-gtk/empathy-location-manager.c b/libempathy-gtk/empathy-location-manager.c
index 5bdb724..4ef27db 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,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]