mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-07-29 11:41:22 +03:00
doc/tutorial/includeaddattribute.c doc/tutorial/includeaddkeyword.c
Sat Aug 31 19:31:17 MDT 2002 John Fleck <jfleck@inkstain.net> * doc/tutorial/includeaddattribute.c * doc/tutorial/includeaddkeyword.c * doc/tutorial/includegetattribute.c * doc/tutorial/includekeyword.c * doc/tutorial/xmltutorial.xml * doc/tutorial/*.html update tutorial to properly free memory (thanks to Christopher R. Harris for pointing out that this needs to be done) * doc/tutorial/images/callouts/*.png added image files so the callouts are graphical, making it easier to read ( use "--param callout.graphics 1" to generate html with graphical callouts)
This commit is contained in:
committed by
John Fleck
parent
8f40f1e659
commit
77e4d358c6
@ -22,6 +22,7 @@ parseDoc(char *docname, char *keyword) {
|
||||
|
||||
if (doc == NULL ) {
|
||||
fprintf(stderr,"Document not parsed successfully. \n");
|
||||
xmlFreeDoc(doc);
|
||||
return (NULL);
|
||||
}
|
||||
|
||||
@ -67,7 +68,9 @@ main(int argc, char **argv) {
|
||||
doc = parseDoc (docname, keyword);
|
||||
if (doc != NULL) {
|
||||
xmlSaveFormatFile (docname, doc, 0);
|
||||
xmlFreeDoc(doc);
|
||||
}
|
||||
|
||||
return (1);
|
||||
}
|
||||
]]>
|
||||
|
Reference in New Issue
Block a user