From 36ae626ab8e2a6752f242e64b0ff9946efa20c0e Mon Sep 17 00:00:00 2001 From: Cesare Tirabassi Date: Mon, 3 Aug 2009 19:58:21 +0200 Subject: [PATCH] Add parser initialisation and cleanup --- src/conky.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/conky.c b/src/conky.c index df45fa6b..6c53b341 100644 --- a/src/conky.c +++ b/src/conky.c @@ -68,6 +68,9 @@ #ifdef NCURSES #include #endif +#ifdef XOAP +#include +#endif /* XOAP */ /* local headers */ #include "algebra.h" @@ -7853,6 +7856,9 @@ void clean_up(void *memtofree1, void* memtofree2) llua_shutdown_hook(); llua_close(); #endif /* HAVE_LUA */ +#ifdef XOAP + xmlCleanupParser(); +#endif /* XOAP */ if (specials) { for (i = 0; i < special_count; i++) { @@ -9478,6 +9484,9 @@ void initialisation(int argc, char **argv) { #ifdef HAVE_LUA llua_setup_info(&info, update_interval); #endif /* HAVE_LUA */ +#ifdef XOAP + xmlInitParser(); +#endif /* XOAP */ /* Set signal handlers */ act.sa_handler = signal_handler;