diff options
author | John MacFarlane <jgm@berkeley.edu> | 2016-01-11 13:40:03 -0800 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2016-01-11 13:40:03 -0800 |
commit | 93aeacca3061b490e77047e08def107c6ab1f7b2 (patch) | |
tree | 8d2d589140afd3719bc24f2ed2a0cf36e994eb23 /src/node.c | |
parent | c9004ffe784577c39b680096883bc8f90524bf8a (diff) |
cmark_node_replace - unlink, but don't free, oldnode.
Diffstat (limited to 'src/node.c')
-rw-r--r-- | src/node.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -734,7 +734,7 @@ int cmark_node_replace(cmark_node *oldnode, cmark_node *newnode) { if (!cmark_node_insert_before(oldnode, newnode)) { return 0; } - cmark_node_free(oldnode); // free calls cmark_node_unlink + cmark_node_unlink(oldnode); return 1; } |