diff options
author | Richard Hughes <richard@hughsie.com> | 2014-06-16 14:19:55 +0100 |
---|---|---|
committer | Richard Hughes <richard@hughsie.com> | 2014-06-16 14:19:55 +0100 |
commit | 05d5a45aa1b8dd560740db940ed2c8d5878a9943 (patch) | |
tree | 7ba27e5651188dd35387f03a94e6c2c0866c6d0f | |
parent | e674d6e8e909d6e0bb6f8babfff3c3c148a95468 (diff) | |
download | appstream-glib-05d5a45aa1b8dd560740db940ed2c8d5878a9943.tar.gz |
trivial: Tiny cleanup in AsNode
-rw-r--r-- | libappstream-glib/as-node.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libappstream-glib/as-node.c b/libappstream-glib/as-node.c index 4f57fdc..82f5ea2 100644 --- a/libappstream-glib/as-node.c +++ b/libappstream-glib/as-node.c @@ -399,9 +399,9 @@ gchar * as_node_reflow_text (const gchar *text, gssize text_len) { GString *tmp; - gchar **split; guint i; guint newline_count = 0; + _cleanup_strv_free_ gchar **split = NULL; /* split the text into lines */ tmp = g_string_sized_new (text_len + 1); @@ -435,7 +435,6 @@ as_node_reflow_text (const gchar *text, gssize text_len) /* this last section was paragraph */ newline_count = 1; } - g_strfreev (split); return g_string_free (tmp, FALSE); } |