diff options
Diffstat (limited to 'backends')
-rw-r--r-- | backends/markup-tree.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/backends/markup-tree.c b/backends/markup-tree.c index 2f426052..7110e08b 100644 --- a/backends/markup-tree.c +++ b/backends/markup-tree.c @@ -3575,7 +3575,7 @@ parse_tree (MarkupDir *root, const char *locale, GError **err) { - GMarkupParseContext *context; + GMarkupParseContext *context = NULL; GError *error; ParseInfo info; char *filename; @@ -3642,7 +3642,8 @@ parse_tree (MarkupDir *root, out: - g_markup_parse_context_free (context); + if (context) + g_markup_parse_context_free (context); g_free (filename); if (f != NULL) |