diff options
Diffstat (limited to 'utils/themeeditor')
-rw-r--r-- | utils/themeeditor/skin_parser.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/utils/themeeditor/skin_parser.c b/utils/themeeditor/skin_parser.c index 8cf23bd11a..707fffd87a 100644 --- a/utils/themeeditor/skin_parser.c +++ b/utils/themeeditor/skin_parser.c | |||
@@ -78,7 +78,10 @@ struct skin_element* skin_parse(const char* document) | |||
78 | *to_write = skin_parse_viewport(&cursor); | 78 | *to_write = skin_parse_viewport(&cursor); |
79 | last = *to_write; | 79 | last = *to_write; |
80 | if(!last) | 80 | if(!last) |
81 | { | ||
82 | skin_free_tree(root); /* Clearing any memory already used */ | ||
81 | return NULL; | 83 | return NULL; |
84 | } | ||
82 | 85 | ||
83 | /* Making sure last is at the end */ | 86 | /* Making sure last is at the end */ |
84 | while(last->next) | 87 | while(last->next) |