diff --git a/core/AmMimeBody.cpp b/core/AmMimeBody.cpp index f7dc8a4b..149990fb 100644 --- a/core/AmMimeBody.cpp +++ b/core/AmMimeBody.cpp @@ -119,9 +119,10 @@ void AmContentType::resetBoundary() while (it != params.end()) { Params::iterator l_it = it; it++; - if ((*l_it)->type == Param::BOUNDARY) + if ((*l_it)->type == Param::BOUNDARY) { delete *l_it; params.erase(l_it); + } } params.push_back(new Param(BOUNDARY_str, int2hex(get_random())));