fix crash/leaks from xmlSchematronParse due to improper schema document

* schematron.c: fix crash/leaks from xmlSchematronParse due to improper
  schema document ownership for bug #495215

svn path=/trunk/; revision=3663
2 files changed