summaryrefslogtreecommitdiff
path: root/libappstream-glib/as-utils.c
diff options
context:
space:
mode:
Diffstat (limited to 'libappstream-glib/as-utils.c')
-rw-r--r--libappstream-glib/as-utils.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libappstream-glib/as-utils.c b/libappstream-glib/as-utils.c
index 376e228..4d12aed 100644
--- a/libappstream-glib/as-utils.c
+++ b/libappstream-glib/as-utils.c
@@ -81,7 +81,7 @@ as_markup_strsplit_words (const gchar *text, guint line_len)
{
GPtrArray *lines;
guint i;
- _cleanup_string_free_ GString *curline = NULL;
+ g_autoptr(GString) curline = NULL;
g_auto(GStrv) tokens = NULL;
/* sanity check */
@@ -196,7 +196,7 @@ as_markup_convert (const gchar *markup,
const gchar *tag;
const gchar *tag_c;
_cleanup_node_unref_ GNode *root = NULL;
- _cleanup_string_free_ GString *str = NULL;
+ g_autoptr(GString) str = NULL;
/* is this actually markup */
if (g_strstr_len (markup, -1, "<") == NULL)