handle cleanup from the caller

instead of freeing the resource in mkd_xhtmlpage and mkd_dumptree, the mkd_cleanup now has to be explicitly called.
This commit is contained in:
Koen Punt
2015-10-25 15:46:53 +01:00
parent f88ce546ef
commit 37659eb654
4 changed files with 7 additions and 5 deletions
+1 -1
View File
@@ -206,9 +206,9 @@ main(int argc, char **argv)
mkd_generatetoc(doc, stdout);
if ( content )
mkd_generatehtml(doc, stdout);
mkd_cleanup(doc);
}
}
mkd_cleanup(doc);
}
mkd_deallocate_tags();
adump();