diff options
author | user <Knagis@users.noreply.github.com> | 2014-10-09 07:44:11 -0400 |
---|---|---|
committer | user <Knagis@users.noreply.github.com> | 2014-10-09 07:44:11 -0400 |
commit | c667b141b84ff73f02202cf7debf37d60e9b3918 (patch) | |
tree | a62d807679d5933614f3e325a4a1c4c70fa9d0a7 /src | |
parent | de80806ef51ce89667ebc3f3d1f58bf55d2b370e (diff) |
After inline parsing free any remaining InlineStack instances.
Diffstat (limited to 'src')
-rw-r--r-- | src/inlines.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/inlines.c b/src/inlines.c index 56e4eba..e0c1441 100644 --- a/src/inlines.c +++ b/src/inlines.c @@ -724,6 +724,15 @@ extern node_inl* parse_inlines_while(subject* subj, int (*f)(subject*)) node_inl* last = NULL; while ((*f)(subj) && parse_inline(subj, first, &last)) { } + + inline_stack* istack = subj->last_emphasis; + inline_stack* temp; + while (istack != NULL) { + temp = istack->previous; + free(istack); + istack = temp; + } + return result; } |