diff --git a/compiler2/ttcn3/Ttcnstuff.cc b/compiler2/ttcn3/Ttcnstuff.cc index bd683bd1555c381b73faa0fd6df936df0c123e66..e51f7aa230a9b19b9e2668480cfe6e4ea3d39f29 100644 --- a/compiler2/ttcn3/Ttcnstuff.cc +++ b/compiler2/ttcn3/Ttcnstuff.cc @@ -2378,11 +2378,10 @@ namespace Ttcn { ExtensionAttributes::~ExtensionAttributes() { - if(size() > 0) { - for (size_t i = size()-1; i >= 0; --i) { - delete operator [](i); - } + for (int i = size()-1; i >= 0; --i) { + delete operator [](i); } + clear(); }