mirror of
https://gitlab.gnome.org/GNOME/libxslt
synced 2025-11-08 11:02:18 +03:00
I generate a root node, I assume it's significant progress !
* libxslt/transform.[ch] Makefile.am: started adding the transformation module * pattern.[ch] xslt.c: more work... Daniel
This commit is contained in:
@@ -123,6 +123,11 @@ void
|
||||
xsltFreeTemplate(xsltTemplatePtr template) {
|
||||
if (template == NULL)
|
||||
return;
|
||||
if (template->match) xmlFree(template->match);
|
||||
if (template->name) xmlFree(template->name);
|
||||
if (template->nameURI) xmlFree(template->nameURI);
|
||||
if (template->mode) xmlFree(template->mode);
|
||||
if (template->modeURI) xmlFree(template->modeURI);
|
||||
memset(template, -1, sizeof(xsltTemplate));
|
||||
xmlFree(template);
|
||||
}
|
||||
@@ -178,6 +183,8 @@ void
|
||||
xsltFreeStylesheet(xsltStylesheetPtr sheet) {
|
||||
if (sheet == NULL)
|
||||
return;
|
||||
|
||||
xsltFreeTemplateHashes(sheet);
|
||||
xsltFreeTemplateList(sheet->templates);
|
||||
if (sheet->doc != NULL)
|
||||
xmlFreeDoc(sheet->doc);
|
||||
|
||||
Reference in New Issue
Block a user