aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk
diff options
context:
space:
mode:
authorPierre-Luc Beaudoin <pierre-luc.beaudoin@collabora.co.uk>2009-05-29 23:59:31 +0800
committerPierre-Luc Beaudoin <pierre-luc.beaudoin@collabora.co.uk>2009-06-01 23:35:32 +0800
commit6db41c2d2576e35bfe086a9a96e5014a7a8ff6db (patch)
tree62ca1066b4e72d68fcd2547eabd1ae42302bd6b5 /libempathy-gtk
parent9330381ac6f8b78ba737a21e42f9b60c1bcee6dd (diff)
downloadgsoc2013-empathy-6db41c2d2576e35bfe086a9a96e5014a7a8ff6db.tar
gsoc2013-empathy-6db41c2d2576e35bfe086a9a96e5014a7a8ff6db.tar.gz
gsoc2013-empathy-6db41c2d2576e35bfe086a9a96e5014a7a8ff6db.tar.bz2
gsoc2013-empathy-6db41c2d2576e35bfe086a9a96e5014a7a8ff6db.tar.lz
gsoc2013-empathy-6db41c2d2576e35bfe086a9a96e5014a7a8ff6db.tar.xz
gsoc2013-empathy-6db41c2d2576e35bfe086a9a96e5014a7a8ff6db.tar.zst
gsoc2013-empathy-6db41c2d2576e35bfe086a9a96e5014a7a8ff6db.zip
Factory is sometimes ref leaked
Diffstat (limited to 'libempathy-gtk')
-rw-r--r--libempathy-gtk/empathy-location-manager.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libempathy-gtk/empathy-location-manager.c b/libempathy-gtk/empathy-location-manager.c
index 5db00fde3..7009a91db 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);
}