[gnome-settings-daemon] gconf: No need to g_strdup the value returned by g_key_file_get_value
- From: Rodrigo Moya <rodrigo src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-settings-daemon] gconf: No need to g_strdup the value returned by g_key_file_get_value
- Date: Tue, 6 Sep 2011 10:20:50 +0000 (UTC)
commit 90c0c4c292d3f4634c8f34ca29add004d973700e
Author: Rodrigo Moya <rodrigo gnome-db org>
Date: Tue Sep 6 12:20:51 2011 +0200
gconf: No need to g_strdup the value returned by g_key_file_get_value
plugins/gconf/gsd-gconf-manager.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/plugins/gconf/gsd-gconf-manager.c b/plugins/gconf/gsd-gconf-manager.c
index 20c94b1..3b44224 100644
--- a/plugins/gconf/gsd-gconf-manager.c
+++ b/plugins/gconf/gsd-gconf-manager.c
@@ -117,7 +117,7 @@ gsd_gconf_manager_start (GsdGconfManager *manager, GError **error)
keys_hash = g_hash_table_new_full (g_str_hash, g_str_equal, g_free, g_free);
g_hash_table_insert (keys_hash, g_strdup (keys[j]),
- g_strdup (g_key_file_get_value (key_file, groups[i], keys[j], error)));
+ g_key_file_get_value (key_file, groups[i], keys[j], error));
}
g_strfreev (keys);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]