---
libvirt-gobject/libvirt-gobject-connection.c | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/libvirt-gobject/libvirt-gobject-connection.c
b/libvirt-gobject/libvirt-gobject-connection.c
index c0c47da..aa4a320 100644
--- a/libvirt-gobject/libvirt-gobject-connection.c
+++ b/libvirt-gobject/libvirt-gobject-connection.c
@@ -505,7 +505,7 @@ gboolean gvir_connection_fetch_domains(GVirConnection *conn,
NULL));
g_hash_table_insert(doms,
- g_strdup(gvir_domain_get_uuid(dom)),
+ gvir_domain_get_uuid(dom),
dom);
}
@@ -523,7 +523,7 @@ gboolean gvir_connection_fetch_domains(GVirConnection *conn,
NULL));
g_hash_table_insert(doms,
- g_strdup(gvir_domain_get_uuid(dom)),
+ gvir_domain_get_uuid(dom),
dom);
}
@@ -604,7 +604,7 @@ gboolean gvir_connection_fetch_storage_pools(GVirConnection *conn,
pools = g_hash_table_new_full(g_str_hash,
g_str_equal,
- g_free,
+ NULL,
g_object_unref);
for (i = 0 ; i < nactive ; i++) {
@@ -623,7 +623,7 @@ gboolean gvir_connection_fetch_storage_pools(GVirConnection *conn,
NULL));
g_hash_table_insert(pools,
- g_strdup(gvir_storage_pool_get_uuid(pool)),
+ gvir_storage_pool_get_uuid(pool),
pool);
}
@@ -643,7 +643,7 @@ gboolean gvir_connection_fetch_storage_pools(GVirConnection *conn,
NULL));
g_hash_table_insert(pools,
- g_strdup(gvir_storage_pool_get_uuid(pool)),
+ gvir_storage_pool_get_uuid(pool),
pool);
}
@@ -1046,7 +1046,7 @@ GVirDomain *gvir_connection_create_domain(GVirConnection *conn,
g_mutex_lock(priv->lock);
g_hash_table_insert(priv->domains,
- g_strdup(gvir_domain_get_uuid(domain)),
+ gvir_domain_get_uuid(domain),
domain);
g_mutex_unlock(priv->lock);
--
1.7.6.2