summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Veillard <veillard@src.gnome.org>2007-08-23 13:38:27 +0000
committerDaniel Veillard <veillard@src.gnome.org>2007-08-23 13:38:27 +0000
commit01b332d1bb91934856709dfb1e8e4ef9e1f5b5bf (patch)
tree31db9f1e33d9529d86d559ec039cb404b6882f20
parent73adc4f001a03cbb8f71786c952565d80f74d030 (diff)
downloadlibxslt-01b332d1bb91934856709dfb1e8e4ef9e1f5b5bf.tar.gz
libxslt-01b332d1bb91934856709dfb1e8e4ef9e1f5b5bf.tar.bz2
libxslt-01b332d1bb91934856709dfb1e8e4ef9e1f5b5bf.zip
applied patch from Rob Richards to fix a stylesheet compilation error
* libxslt/xslt.c: applied patch from Rob Richards to fix a stylesheet compilation error handling problem #382570 Daniel svn path=/trunk/; revision=1441
-rw-r--r--ChangeLog5
-rw-r--r--libxslt/xslt.c6
2 files changed, 10 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 5c0216d5..20ae3e70 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Thu Aug 23 15:39:18 CEST 2007 Daniel Veillard <daniel@veillard.com>
+
+ * libxslt/xslt.c: applied patch from Rob Richards to fix a
+ stylesheet compilation error handling problem #382570
+
Thu Aug 23 15:22:55 CEST 2007 Daniel Veillard <daniel@veillard.com>
* libxslt/security.c: applied patch from Roland Schwarz and Rob
diff --git a/libxslt/xslt.c b/libxslt/xslt.c
index bead6db5..5f9db800 100644
--- a/libxslt/xslt.c
+++ b/libxslt/xslt.c
@@ -6565,7 +6565,11 @@ xsltParseStylesheetImportedDoc(xmlDocPtr doc,
* Old behaviour.
*/
retStyle->doc = doc;
- xsltParseStylesheetProcess(retStyle, doc);
+ if (xsltParseStylesheetProcess(retStyle, doc) == NULL) {
+ retStyle->doc = NULL;
+ xsltFreeStylesheet(retStyle);
+ retStyle = NULL;
+ }
if (retStyle != NULL) {
if (retStyle->errors != 0) {
retStyle->doc = NULL;