summaryrefslogtreecommitdiff
path: root/backends
diff options
context:
space:
mode:
authorKjartan Maraas <kmaraas@gnome.org>2006-03-10 01:59:33 +0000
committerKjartan Maraas <kmaraas@src.gnome.org>2006-03-10 01:59:33 +0000
commitb569d79c6357ca3dd393bef51bbe14e6c0f02754 (patch)
tree9ae445a8c0d9713e1b3ea8ae7d6fb2a5cde2bf52 /backends
parent4256c5bb2abd5cf6ac2af11e7007c1e34250dc9a (diff)
downloadgconf-b569d79c6357ca3dd393bef51bbe14e6c0f02754.tar.gz
Patch from Matthias Clasen to fix my leak fix to not crash. Closes bug
2006-03-10 Kjartan Maraas <kmaraas@gnome.org> * backends/markup-tree.c: (parse_tree): Patch from Matthias Clasen to fix my leak fix to not crash. Closes bug #334047.
Diffstat (limited to 'backends')
-rw-r--r--backends/markup-tree.c5
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)