diff options
| author | Denys Vlasenko <vda.linux@googlemail.com> | 2009-07-31 15:13:38 +0200 |
|---|---|---|
| committer | Denys Vlasenko <vda.linux@googlemail.com> | 2009-07-31 15:13:38 +0200 |
| commit | e60c006499ec9a1604f85f84a98145535a7ad0a7 (patch) | |
| tree | 8697c803a43e1b0a0bba0e7f2cb3d05573baa683 /lib/MiddleWare/PluginManager.cpp | |
| parent | f9a9c1ddeaff8e0fc6e1c5b1fb323c4da4763401 (diff) | |
| download | abrt-e60c006499ec9a1604f85f84a98145535a7ad0a7.tar.gz abrt-e60c006499ec9a1604f85f84a98145535a7ad0a7.tar.xz abrt-e60c006499ec9a1604f85f84a98145535a7ad0a7.zip | |
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 <vda.linux@googlemail.com>
Diffstat (limited to 'lib/MiddleWare/PluginManager.cpp')
| -rw-r--r-- | lib/MiddleWare/PluginManager.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
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 <stdio.h> #include <sys/types.h> +/** + * 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), |
