mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-28 16:17:28 -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
1 changed files with 2 additions and 0 deletions
|
@ -128,6 +128,8 @@ RsRegularExpression::Expression * AdvancedSearchDialog::getRsExpr()
|
||||||
|
|
||||||
|
|
||||||
// iterate through the items in elements and
|
// 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) {
|
for (int i = 1; i < expressions->size(); ++i) {
|
||||||
// extract the expression information and compound it with the
|
// extract the expression information and compound it with the
|
||||||
// first expression
|
// first expression
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue