summaryrefslogtreecommitdiff
path: root/libappstream-glib/as-translation.c
diff options
context:
space:
mode:
Diffstat (limited to 'libappstream-glib/as-translation.c')
-rw-r--r--libappstream-glib/as-translation.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libappstream-glib/as-translation.c b/libappstream-glib/as-translation.c
index b362442..60c07f2 100644
--- a/libappstream-glib/as-translation.c
+++ b/libappstream-glib/as-translation.c
@@ -233,7 +233,7 @@ as_translation_node_parse (AsTranslation *translation, GNode *node,
tmp = as_node_get_attribute (node, "type");
as_translation_set_kind (translation, as_translation_kind_from_string (tmp));
- as_ref_string_assign (&priv->id, as_node_get_data (node));
+ as_ref_string_assign (&priv->id, as_node_get_data_as_refstr (node));
return TRUE;
}