X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Frouter_flexml.cpp;h=947366adbb30dad470641b10392f8e1e7c13bedb;hb=371d2802f2b6c89ac0a603d1ea447b08acd3861a;hp=e1f723e8cb6f0d15443398e837b32728b6a0692b;hpb=b0ce7b47a0490c7edbb2f2c0794279db970a2102;p=metaproxy-moved-to-github.git diff --git a/src/router_flexml.cpp b/src/router_flexml.cpp index e1f723e..947366a 100644 --- a/src/router_flexml.cpp +++ b/src/router_flexml.cpp @@ -203,12 +203,12 @@ void mp::RouterFleXML::Rep::parse_xml_filters1(xmlDocPtr doc, type_value.c_str(), m_dl_path.c_str()); m_factory->add_creator_dl(type_value, m_dl_path); } - mp::filter::Base* filter_base = m_factory->create(type_value); + boost::shared_ptr + filter_base(m_factory->create(type_value)); filter_base->configure(node, test_only, file_include_path); - route.m_list.push_back( - boost::shared_ptr(filter_base)); + route.m_list.push_back(filter_base); } } @@ -431,8 +431,6 @@ mp::RouterFleXML::RouterFleXML(std::string xmlconf, mp::FactoryFilter &factory, bool test_only) : m_p(new Rep) { - LIBXML_TEST_VERSION; - xmlDocPtr doc = xmlParseMemory(xmlconf.c_str(), xmlconf.size()); if (!doc)