{"comment":{"url":"https://api.github.com/repos/jgm/cmark/comments/15377292","html_url":"https://github.com/jgm/cmark/commit/93843bd2fe8c91fe9e659c5b801f1a7d672dc223#commitcomment-15377292","id":15377292,"user":{"login":"jgm","id":3044,"avatar_url":"https://avatars.githubusercontent.com/u/3044?v=3","gravatar_id":"","url":"https://api.github.com/users/jgm","html_url":"https://github.com/jgm","followers_url":"https://api.github.com/users/jgm/followers","following_url":"https://api.github.com/users/jgm/following{/other_user}","gists_url":"https://api.github.com/users/jgm/gists{/gist_id}","starred_url":"https://api.github.com/users/jgm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jgm/subscriptions","organizations_url":"https://api.github.com/users/jgm/orgs","repos_url":"https://api.github.com/users/jgm/repos","events_url":"https://api.github.com/users/jgm/events{/privacy}","received_events_url":"https://api.github.com/users/jgm/received_events","type":"User","site_admin":false},"position":null,"line":null,"path":"","commit_id":"93843bd2fe8c91fe9e659c5b801f1a7d672dc223","created_at":"2016-01-11T18:35:27Z","updated_at":"2016-01-11T18:35:27Z","body":"+++ Nick Wellnhofer [Jan 11 16 03:27 ]:\n>   I think it's a good idea. The call to cmark_node_unlink isn't\n>   necessary, btw. cmark_node_free automatically unlinks a node. I'm also\n>   not sure whether cmark_node_replace should free the old node at all.\n\nI wasn't sure either, but by far the most common use for\nthis will be replacing a node you don't want to keep around\nat all.  I'm trying to minimize the need for users\n(particularly people using this API via bindings in a\ndynamic language) to worry about memory management.\nPeople may remember to free the memory used by the\nwhole document but forget to free nodes they've replaced.\n\n"}}