gcr: Fix extra object reference in gcr_union_collection_take()
authorStef Walter <stefw@collabora.co.uk>
Wed, 7 Sep 2011 14:14:24 +0000 (16:14 +0200)
committerStef Walter <stefw@collabora.co.uk>
Wed, 7 Sep 2011 14:14:24 +0000 (16:14 +0200)
gcr/gcr-union-collection.c

index d331c67..558590f 100644 (file)
@@ -265,7 +265,7 @@ gcr_union_collection_take (GcrUnionCollection *self,
 
        g_object_ref (collection);
 
-       g_hash_table_insert (self->pv->collections, g_object_ref (collection), collection);
+       g_hash_table_insert (self->pv->collections, collection, collection);
        connect_to_collection (self, collection);
 
        objects = gcr_collection_get_objects (collection);