[empathy] Don't ref the returned hash table



commit 5c96e5c47e4165508afa184e1c1eefa5318f19e2
Author: Pierre-Luc Beaudoin <pierre-luc pierlux com>
Date:   Sat May 9 17:10:45 2009 -0400

    Don't ref the returned hash table
---
 libempathy/empathy-contact.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/libempathy/empathy-contact.c b/libempathy/empathy-contact.c
index 6c7b18c..56a1c75 100644
--- a/libempathy/empathy-contact.c
+++ b/libempathy/empathy-contact.c
@@ -1035,7 +1035,7 @@ empathy_avatar_save_to_file (EmpathyAvatar *self,
  * Example: a "city" key would have "Helsinki" as string GValue,
  *          a "latitude" would have 65.0 as double GValue.
  *
- * Returns: a #GHashTable of location values, use #g_hash_table_unref when it to free it
+ * Returns: a #GHashTable of location values
  */
 GHashTable *
 empathy_contact_get_location (EmpathyContact *contact)
@@ -1046,7 +1046,7 @@ empathy_contact_get_location (EmpathyContact *contact)
 
   priv = GET_PRIV (contact);
 
-  return g_hash_table_ref (priv->location);
+  return priv->location;
 }
 
 /**



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]