]> git.0d.be Git - empathy.git/commitdiff
Don't ref the returned hash table
authorPierre-Luc Beaudoin <pierre-luc@pierlux.com>
Sat, 9 May 2009 21:10:45 +0000 (17:10 -0400)
committerPierre-Luc Beaudoin <pierre-luc@pierlux.com>
Sat, 9 May 2009 21:22:23 +0000 (17:22 -0400)
libempathy/empathy-contact.c

index 6c7b18c4f516cee4c4ab65196088d9b48a923485..56a1c75afeeb240f550c8b55240e1ef7c7b41103 100644 (file)
@@ -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;
 }
 
 /**