summaryrefslogtreecommitdiff
path: root/src/emacs.c
diff options
context:
space:
mode:
authorLars Magne Ingebrigtsen <larsi@gnus.org>2011-09-03 23:59:25 +0200
committerLars Magne Ingebrigtsen <larsi@gnus.org>2011-09-03 23:59:25 +0200
commitfcb901a77a0a3eaf21f0126466ae84fdc18fce2c (patch)
treeee4518e0949821d5d74c5e203fe6aaebd24e52da /src/emacs.c
parent2784c43403c278a542a9f930a4da07a4a2ca284c (diff)
downloademacs-fcb901a77a0a3eaf21f0126466ae84fdc18fce2c.tar.gz
Fix up xmlCleanupParser sequence.
* xml.c (parse_region): Don't call xmlCleanupParser after parsing, since this reportedly can destroy thread storage. * emacs.c (shut_down_emacs): Call xmlCleanupParser on shutdown.
Diffstat (limited to 'src/emacs.c')
-rw-r--r--src/emacs.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/emacs.c b/src/emacs.c
index 7039f063dc2..f68c47ffed0 100644
--- a/src/emacs.c
+++ b/src/emacs.c
@@ -2097,6 +2097,10 @@ shut_down_emacs (int sig, int no_x, Lisp_Object stuff)
#ifdef HAVE_NS
ns_term_shutdown (sig);
#endif
+
+#ifdef HAVE_LIBXML2
+ xmlCleanupParser ();
+#endif
}