From 12501f1000f592ff67cca98b6733f0bfa3115f9f Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Mon, 3 Apr 2017 13:01:30 +0200 Subject: Fixed code for freeing delimiter stack. Note, however, that this may not be needed at all: the old code would have gone into an infinite loop if the delimiter stack were not already freed. If we can prove that the delimiter stack is empty at this point, we could remove this; on the other hand, it may not hurt to keep it here defensively. Closes #189. --- src/inlines.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/inlines.c b/src/inlines.c index 3807da9..021d5a3 100644 --- a/src/inlines.c +++ b/src/inlines.c @@ -1165,7 +1165,7 @@ extern void cmark_parse_inlines(cmark_mem *mem, cmark_node *parent, process_emphasis(&subj, NULL); // free bracket and delim stack while (subj.last_delim) { - pop_bracket(&subj); + remove_delimiter(&subj, subj.last_delim); } while (subj.last_bracket) { pop_bracket(&subj); -- cgit v1.2.3