[empathy] individual-manager: dup the Individual ID instead of borrowing it
- From: Guillaume Desmottes <gdesmott src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [empathy] individual-manager: dup the Individual ID instead of borrowing it
- Date: Mon, 12 Sep 2011 13:37:46 +0000 (UTC)
commit 5b8d5406a2096aaa9d84f79c115464eb190d0830
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date: Mon Sep 12 15:15:07 2011 +0200
individual-manager: dup the Individual ID instead of borrowing it
It's not immutable any more so we have to copy the string.
https://bugzilla.gnome.org/show_bug.cgi?id=658573
libempathy/empathy-individual-manager.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/libempathy/empathy-individual-manager.c b/libempathy/empathy-individual-manager.c
index 7b6adef..4e80343 100644
--- a/libempathy/empathy-individual-manager.c
+++ b/libempathy/empathy-individual-manager.c
@@ -96,7 +96,7 @@ add_individual (EmpathyIndividualManager *self, FolksIndividual *individual)
EmpathyIndividualManagerPriv *priv = GET_PRIV (self);
g_hash_table_insert (priv->individuals,
- (gpointer) folks_individual_get_id (individual),
+ g_strdup (folks_individual_get_id (individual)),
g_object_ref (individual));
g_signal_connect (individual, "group-changed",
@@ -331,7 +331,7 @@ empathy_individual_manager_init (EmpathyIndividualManager *self)
self->priv = priv;
priv->individuals = g_hash_table_new_full (g_str_hash, g_str_equal,
- NULL, g_object_unref);
+ g_free, g_object_unref);
priv->aggregator = folks_individual_aggregator_new ();
g_signal_connect (priv->aggregator, "individuals-changed",
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]