markup: Fix leaks in container types in markup parser
This commit is contained in:
parent
75cbf09a37
commit
33d38e0182
@ -103,6 +103,7 @@ int markup_free_tag(struct markup_tag * tag) {
|
|||||||
list_free(keys);
|
list_free(keys);
|
||||||
free(keys);
|
free(keys);
|
||||||
hashmap_free(tag->options);
|
hashmap_free(tag->options);
|
||||||
|
free(tag->options);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -257,6 +257,8 @@ int markup_finish_renderer(struct MarkupState * state) {
|
|||||||
markup_finish(state->parser);
|
markup_finish(state->parser);
|
||||||
list_free(state->state);
|
list_free(state->state);
|
||||||
list_free(state->colors);
|
list_free(state->colors);
|
||||||
|
free(state->state);
|
||||||
|
free(state->colors);
|
||||||
int total = state->max_cursor_x - state->initial_left;
|
int total = state->max_cursor_x - state->initial_left;
|
||||||
free(state);
|
free(state);
|
||||||
return total;
|
return total;
|
||||||
|
Loading…
Reference in New Issue
Block a user