From 36e3772d5915e3e3d5fc0bf8453b3f594a90bc77 Mon Sep 17 00:00:00 2001 From: Phenom Date: Fri, 21 Jul 2017 15:19:17 +0200 Subject: [PATCH] Fix CppCheck Error in advancedsearchdialog.cpp /retroshare-gui/src/gui/advsearch/advancedsearchdialog.cpp:131: error: Cppcheck(memleak): Memory leak: wholeExpression --- retroshare-gui/src/gui/advsearch/advancedsearchdialog.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/retroshare-gui/src/gui/advsearch/advancedsearchdialog.cpp b/retroshare-gui/src/gui/advsearch/advancedsearchdialog.cpp index d4b629b4b..4eb551a2e 100644 --- a/retroshare-gui/src/gui/advsearch/advancedsearchdialog.cpp +++ b/retroshare-gui/src/gui/advsearch/advancedsearchdialog.cpp @@ -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