Code analyser tool runned against QT including CLucene reveiled CTOR_DTOR_LEAK in FSDirectory::FSIndexInput::SharedHandle::~SharedHandle()
Fix proposal:
diff --git a/src/3rdparty/clucene/src/CLucene/search/PhraseQuery.cpp b/src/3rdparty/clucene/src/CLucene/search/PhraseQuery.cpp
index 899cb3c..566904f 100644
--- a/src/3rdparty/clucene/src/CLucene/search/PhraseQuery.cpp
+++ b/src/3rdparty/clucene/src/CLucene/search/PhraseQuery.cpp
@@ -418,6 +418,8 @@ CL_NS_DEF(search)
queryNormExpl->getValue());
result->addDetail(queryExpl);
+ if (_this->getBoost() == 1.0f)
+ _CLDELETE(boostExpl);
// explain field weight
Explanation* fieldExpl = _CLNEW Explanation;
This bug refers to v0.9.21. In the current master branch this issue was fixed already. See commit f495897b.