diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/unittests/utils/itemxmlutils.cc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/unittests/utils/itemxmlutils.cc b/src/unittests/utils/itemxmlutils.cc index 825bc2f97..84512b5be 100644 --- a/src/unittests/utils/itemxmlutils.cc +++ b/src/unittests/utils/itemxmlutils.cc @@ -35,6 +35,7 @@ #include "utils/delete2.h" #include "utils/env.h" +#include "utils/foreach.h" #include "utils/xml.h" #include "utils/itemxmlutils.h" @@ -206,6 +207,10 @@ TEST_CASE("itemxmlutils readItemStatsString 1", "") REQUIRE(effect == "Weight -2"); } + FOR_EACH(ItemFieldInfos::iterator, it, fields) + { + delete (*it).second; + } delete2(userPalette); delete2(theme); delete2(client); @@ -404,6 +409,10 @@ TEST_CASE("itemxmlutils readItemStatsVector 1", "") REQUIRE(effect[0] == "Weight -2"); } + FOR_EACH(ItemFieldInfos::iterator, it, fields) + { + delete (*it).second; + } delete2(userPalette); delete2(theme); delete2(client); |