From 47a7029cd747de7ddd0108fcc163ecd11e1e8543 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Wed, 1 Feb 2017 02:48:22 +0000 Subject: Add explicit init and clean up of XML/XSLT things with the API instance --- gentoobrowse-api/service/main.cpp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/gentoobrowse-api/service/main.cpp b/gentoobrowse-api/service/main.cpp index b7b18a2..8ac8a8b 100644 --- a/gentoobrowse-api/service/main.cpp +++ b/gentoobrowse-api/service/main.cpp @@ -7,10 +7,25 @@ #include "notificationsimpl.h" #include "mailserverimpl.h" +#include +#include + namespace Gentoo { namespace Service { class Api : public IceTray::Service { public: + Api() + { + xmlInitParser(); + // exsltRegisterAll(); + } + + ~Api() + { + xsltCleanupGlobals(); + xmlCleanupParser(); + } + void addObjects(const std::string &, const Ice::CommunicatorPtr & ic, const Ice::StringSeq &, const Ice::ObjectAdapterPtr & adp) override { auto db = getConnectionPool(ic, "postgresql", "GentooBrowseAPI"); -- cgit v1.2.3