summaryrefslogtreecommitdiff
path: root/libappstream-glib/as-inf.c
diff options
context:
space:
mode:
authorKalev Lember <klember@redhat.com>2015-09-10 15:12:05 +0200
committerKalev Lember <klember@redhat.com>2015-09-10 15:21:38 +0200
commitb1bc5776bb3bbac508b793d00c80cd78d82cc8b3 (patch)
tree3347a2d9d87dd70d4903a1ff62d49e370305cfc1 /libappstream-glib/as-inf.c
parent752e45e990a00331290067bdcb07a2f4ab2001ad (diff)
downloadappstream-glib-b1bc5776bb3bbac508b793d00c80cd78d82cc8b3.tar.gz
Use glib's cleanup functions for GString
... and bump glib dep to 2.45.8 for g_autoptr(GString) support.
Diffstat (limited to 'libappstream-glib/as-inf.c')
-rw-r--r--libappstream-glib/as-inf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libappstream-glib/as-inf.c b/libappstream-glib/as-inf.c
index e90a953..d4bebea 100644
--- a/libappstream-glib/as-inf.c
+++ b/libappstream-glib/as-inf.c
@@ -31,10 +31,10 @@
#include "config.h"
+#include <gio/gio.h>
#include <string.h>
#include <stdlib.h>
-#include "as-cleanup.h"
#include "as-inf.h"
/**
@@ -696,7 +696,7 @@ as_inf_parse_line (AsInfHelper *helper, gchar *line, GError **error)
g_str_has_prefix (line, "HK")) {
guint i;
g_auto(GStrv) reg_split = NULL;
- _cleanup_string_free_ GString *str = NULL;
+ g_autoptr(GString) str = NULL;
str = g_string_new ("");
reg_split = g_strsplit (line, ",", -1);
for (i = 0; reg_split[i+1] != NULL; i++) {