diff --git a/libsearch/plugininterface/search-plugin-iface.h b/libsearch/plugininterface/search-plugin-iface.h index 19806d7..d4ccdb9 100644 --- a/libsearch/plugininterface/search-plugin-iface.h +++ b/libsearch/plugininterface/search-plugin-iface.h @@ -23,11 +23,12 @@ public: }; virtual ~SearchPluginIface() {} virtual QString getPluginName() = 0; - virtual void KeywordSearch(QString keyword,QQueue *searchResult); - virtual void openAction(QString name, QString key); + virtual void KeywordSearch(QString keyword,QQueue *searchResult) = 0; + virtual void openAction(QString name, QString key) = 0; }; } + Q_DECLARE_INTERFACE(Zeeker::SearchPluginIface, SearchPluginIface_iid) #endif // SEARCHPLUGINIFACE_H diff --git a/libsearch/pluginmanage/search-plugin-manager.cpp b/libsearch/pluginmanage/search-plugin-manager.cpp index f81bbe0..8adbfdb 100644 --- a/libsearch/pluginmanage/search-plugin-manager.cpp +++ b/libsearch/pluginmanage/search-plugin-manager.cpp @@ -38,3 +38,8 @@ void SearchPluginManager::close() SearchPluginManager::SearchPluginManager(QObject *parent) { } + +SearchPluginManager::~SearchPluginManager() +{ + m_hash.clear(); +}