mirror of
https://github.com/Llewellynvdm/conky.git
synced 2025-01-14 11:33:14 +00:00
Add parser initialisation and cleanup
This commit is contained in:
parent
008fdb3d54
commit
36ae626ab8
@ -68,6 +68,9 @@
|
|||||||
#ifdef NCURSES
|
#ifdef NCURSES
|
||||||
#include <ncurses.h>
|
#include <ncurses.h>
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef XOAP
|
||||||
|
#include <libxml/parser.h>
|
||||||
|
#endif /* XOAP */
|
||||||
|
|
||||||
/* local headers */
|
/* local headers */
|
||||||
#include "algebra.h"
|
#include "algebra.h"
|
||||||
@ -7853,6 +7856,9 @@ void clean_up(void *memtofree1, void* memtofree2)
|
|||||||
llua_shutdown_hook();
|
llua_shutdown_hook();
|
||||||
llua_close();
|
llua_close();
|
||||||
#endif /* HAVE_LUA */
|
#endif /* HAVE_LUA */
|
||||||
|
#ifdef XOAP
|
||||||
|
xmlCleanupParser();
|
||||||
|
#endif /* XOAP */
|
||||||
|
|
||||||
if (specials) {
|
if (specials) {
|
||||||
for (i = 0; i < special_count; i++) {
|
for (i = 0; i < special_count; i++) {
|
||||||
@ -9478,6 +9484,9 @@ void initialisation(int argc, char **argv) {
|
|||||||
#ifdef HAVE_LUA
|
#ifdef HAVE_LUA
|
||||||
llua_setup_info(&info, update_interval);
|
llua_setup_info(&info, update_interval);
|
||||||
#endif /* HAVE_LUA */
|
#endif /* HAVE_LUA */
|
||||||
|
#ifdef XOAP
|
||||||
|
xmlInitParser();
|
||||||
|
#endif /* XOAP */
|
||||||
|
|
||||||
/* Set signal handlers */
|
/* Set signal handlers */
|
||||||
act.sa_handler = signal_handler;
|
act.sa_handler = signal_handler;
|
||||||
|
Loading…
Reference in New Issue
Block a user