summaryrefslogtreecommitdiff
path: root/src/inlines.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/inlines.c')
-rw-r--r--src/inlines.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/inlines.c b/src/inlines.c
index 5c28436..e08b757 100644
--- a/src/inlines.c
+++ b/src/inlines.c
@@ -450,8 +450,7 @@ static void process_emphasis(subject *subj, delimiter_stack *stack_bottom)
if (tmp->next) {
tmp->next->prev = emph;
}
- cmark_node_unlink(tmp);
- cmark_free_nodes(tmp);
+ cmark_node_free(tmp);
// remove closer from stack
tempstack = closer->next;
remove_delimiter(subj, closer);