aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2011-09-12 21:15:07 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2011-09-12 21:21:30 +0800
commit5b8d5406a2096aaa9d84f79c115464eb190d0830 (patch)
tree7c8f3cf6a415703560334b4bf453f36899b4b153
parentf0ca128096983de9df36d0fa981a0c3dcdaf5c99 (diff)
downloadgsoc2013-empathy-5b8d5406a2096aaa9d84f79c115464eb190d0830.tar
gsoc2013-empathy-5b8d5406a2096aaa9d84f79c115464eb190d0830.tar.gz
gsoc2013-empathy-5b8d5406a2096aaa9d84f79c115464eb190d0830.tar.bz2
gsoc2013-empathy-5b8d5406a2096aaa9d84f79c115464eb190d0830.tar.lz
gsoc2013-empathy-5b8d5406a2096aaa9d84f79c115464eb190d0830.tar.xz
gsoc2013-empathy-5b8d5406a2096aaa9d84f79c115464eb190d0830.tar.zst
gsoc2013-empathy-5b8d5406a2096aaa9d84f79c115464eb190d0830.zip
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
-rw-r--r--libempathy/empathy-individual-manager.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libempathy/empathy-individual-manager.c b/libempathy/empathy-individual-manager.c
index 7b6adef97..4e8034373 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",