summaryrefslogtreecommitdiff
path: root/src/bookmarks
diff options
context:
space:
mode:
authorMichael Catanzaro <mcatanzaro@igalia.com>2018-06-15 10:35:18 -0500
committerMichael Catanzaro <mcatanzaro@igalia.com>2018-06-15 10:35:18 -0500
commit1bd7a5889d3c5276cdd3f311da722e696942832f (patch)
treee51deac4259407e44bfa0211ea8c3584b53370e4 /src/bookmarks
parent21de3c5d9991e13c020be82e8a8fa6f285733779 (diff)
downloadepiphany-1bd7a5889d3c5276cdd3f311da722e696942832f.tar.gz
Use g_value_dup_string where possible
Diffstat (limited to 'src/bookmarks')
-rw-r--r--src/bookmarks/ephy-bookmark.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/bookmarks/ephy-bookmark.c b/src/bookmarks/ephy-bookmark.c
index 390472e24..43619a4ef 100644
--- a/src/bookmarks/ephy-bookmark.c
+++ b/src/bookmarks/ephy-bookmark.c
@@ -105,15 +105,15 @@ ephy_bookmark_set_property (GObject *object,
break;
case PROP_TYPE:
g_free (self->type);
- self->type = g_strdup (g_value_get_string (value));
+ self->type = g_value_dup_string (value);
break;
case PROP_PARENT_ID:
g_free (self->parent_id);
- self->parent_id = g_strdup (g_value_get_string (value));
+ self->parent_id = g_value_dup_string (value);
break;
case PROP_PARENT_NAME:
g_free (self->parent_name);
- self->parent_name = g_strdup (g_value_get_string (value));
+ self->parent_name = g_value_dup_string (value);
break;
case PROP_LOAD_IN_SIDEBAR:
self->load_in_sidebar = g_value_get_boolean (value);