summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Hughes <richard@hughsie.com>2016-08-18 09:47:50 +0100
committerRichard Hughes <richard@hughsie.com>2016-08-18 09:51:42 +0100
commitaeaa77170c8eb5b5f5be731d23be70ad3131aa32 (patch)
treece2e34c65ee6c737f7a80a3f30c61ffcfc45b852
parent649a59e7d78e0b26ee1d24560671109de018bc75 (diff)
downloadappstream-glib-aeaa77170c8eb5b5f5be731d23be70ad3131aa32.tar.gz
trivial: Fix a small memory leak in as_markup_import()
-rw-r--r--libappstream-glib/as-markup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libappstream-glib/as-markup.c b/libappstream-glib/as-markup.c
index 5241e68..f2e1c55 100644
--- a/libappstream-glib/as-markup.c
+++ b/libappstream-glib/as-markup.c
@@ -213,13 +213,13 @@ static gchar *
as_markup_import_html (const gchar *text, GError **error)
{
AsMarkupImportHelper helper;
- GMarkupParseContext *ctx;
GMarkupParser parser = {
as_markup_import_html_start_cb,
as_markup_import_html_end_cb,
as_markup_import_html_text_cb,
NULL,
NULL };
+ g_autoptr(GMarkupParseContext) ctx = NULL;
g_autoptr(GString) str = NULL;
g_autoptr(GString) helper_output = NULL;
g_autoptr(GString) helper_temp = NULL;