mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
Fix CppCheck Error in advancedsearchdialog.cpp
/retroshare-gui/src/gui/advsearch/advancedsearchdialog.cpp:131: error: Cppcheck(memleak): Memory leak: wholeExpression
This commit is contained in:
parent
145ce6b8b5
commit
36e3772d59
@ -128,6 +128,8 @@ RsRegularExpression::Expression * AdvancedSearchDialog::getRsExpr()
|
||||
|
||||
|
||||
// iterate through the items in elements and
|
||||
#warning Phenom (2017-07-21): I don't know if it is a real memLeak for wholeExpression. If not remove this warning and add a comment how it is deleted.
|
||||
// cppcheck-suppress memleak
|
||||
for (int i = 1; i < expressions->size(); ++i) {
|
||||
// extract the expression information and compound it with the
|
||||
// first expression
|
||||
|
Loading…
Reference in New Issue
Block a user