diff options
author | Dave Beckett <dave@dajobe.org> | 2010-01-08 12:50:41 -0800 |
---|---|---|
committer | Dave Beckett <dave@dajobe.org> | 2010-01-08 12:50:41 -0800 |
commit | 9e8fa8496741851e152974df6e9ec9b34f7b3f97 (patch) | |
tree | dd8793e4b7d494fe7588087aa4eab0b99ec91599 /src/raptor_sax2.c | |
parent | 47d055a64d67a4e5802c362b37a360b9dec98d22 (diff) | |
download | raptor-9e8fa8496741851e152974df6e9ec9b34f7b3f97.tar.gz |
Move libxml init/free code to raptor_libxml_init and raptor_libxml_finish
(raptor_libxml_init): Add xmlInitParser call.
(raptor_libxml_finish): Add xmlCleanupParser call.
(raptor_sax2_init): Remove xmlInitParser call.
(raptor_sax2_finish): Remove xmlCleanupParser call.
Diffstat (limited to 'src/raptor_sax2.c')
-rw-r--r-- | src/raptor_sax2.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/src/raptor_sax2.c b/src/raptor_sax2.c index bc7b11d5..ce3a51e8 100644 --- a/src/raptor_sax2.c +++ b/src/raptor_sax2.c @@ -58,9 +58,6 @@ raptor_sax2_init(raptor_world* world) if(world->sax2_initialized++) return 0; -#ifdef RAPTOR_XML_LIBXML - xmlInitParser(); -#endif return 0; } @@ -70,14 +67,6 @@ raptor_sax2_finish(raptor_world* world) { if(--world->sax2_initialized) return; - -#ifdef RAPTOR_XML_LIBXML - /* Should call this after all uses of libxml are done. - * In particular after xmlSetStructuredErrorFunc() otherwise - * it has reportedly caused an access violation on windows. - */ - xmlCleanupParser(); -#endif } |