From e60c006499ec9a1604f85f84a98145535a7ad0a7 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Fri, 31 Jul 2009 15:13:38 +0200 Subject: Move PLUGIN_INFOs to .cpp files: same object must never be defined twice and if structure is defined in a .h file, that happens. Since this particular structure has non-trivial destructor, it was running twice and resulted in double-free. Signed-off-by: Denys Vlasenko --- lib/MiddleWare/PluginManager.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'lib/MiddleWare/PluginManager.cpp') diff --git a/lib/MiddleWare/PluginManager.cpp b/lib/MiddleWare/PluginManager.cpp index 916eabe..2d11093 100644 --- a/lib/MiddleWare/PluginManager.cpp +++ b/lib/MiddleWare/PluginManager.cpp @@ -27,6 +27,12 @@ #include #include +/** + * Text reprezentation of plugin types. + */ +static const char* const plugin_type_str_t[] = { "Analyzer", "Action", "Reporter", "Database" }; + + CPluginManager::CPluginManager(const std::string& pPlugisConfDir, const std::string& pPlugisLibDir) : m_sPlugisConfDir(pPlugisConfDir), -- cgit