[empathy] Factory is sometimes ref leaked
- From: Pierre-Luc Beaudoin <plbeaudoin src gnome org>
- To: svn-commits-list gnome org
- Subject: [empathy] Factory is sometimes ref leaked
- Date: Mon, 1 Jun 2009 11:45:54 -0400 (EDT)
commit 6db41c2d2576e35bfe086a9a96e5014a7a8ff6db
Author: Pierre-Luc Beaudoin <pierre-luc beaudoin collabora co uk>
Date: Fri May 29 11:59:31 2009 -0400
Factory is sometimes ref leaked
---
libempathy-gtk/empathy-location-manager.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/libempathy-gtk/empathy-location-manager.c b/libempathy-gtk/empathy-location-manager.c
index 5db00fd..7009a91 100644
--- a/libempathy-gtk/empathy-location-manager.c
+++ b/libempathy-gtk/empathy-location-manager.c
@@ -142,8 +142,6 @@ publish_location (EmpathyLocationManager *location_manager,
if (!conn)
return;
- factory = empathy_tp_contact_factory_dup_singleton (conn);
-
if (force_publication == FALSE)
{
if (!empathy_conf_get_bool (conf, EMPATHY_PREFS_LOCATION_PUBLISH,
@@ -164,6 +162,7 @@ publish_location (EmpathyLocationManager *location_manager,
(g_hash_table_size (priv->location) == 0 ? "empty" : ""),
mc_account_get_display_name (account));
+ factory = empathy_tp_contact_factory_dup_singleton (conn);
empathy_tp_contact_factory_set_location (factory, priv->location);
g_object_unref (factory);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]