summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2017-04-03 13:01:30 +0200
committerJohn MacFarlane <jgm@berkeley.edu>2017-04-03 13:01:30 +0200
commit12501f1000f592ff67cca98b6733f0bfa3115f9f (patch)
tree67ecdf3c50fb6ed3a6af2f20ae2d5250f21816bc
parentb75890e0fd7abb995d083b795c2cd45703b7cb22 (diff)
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.
-rw-r--r--src/inlines.c2
1 files changed, 1 insertions, 1 deletions
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);