From 547ea61be89c95bbd902139e19c83c665b33559e Mon Sep 17 00:00:00 2001 From: Pawel Szostek Date: Wed, 13 Jul 2011 08:55:49 +0200 Subject: [PATCH] Delete dynamically allocated objects in vhdlpp --- vhdlpp/architec.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/vhdlpp/architec.cc b/vhdlpp/architec.cc index 79ccbb20f..24b6fce24 100644 --- a/vhdlpp/architec.cc +++ b/vhdlpp/architec.cc @@ -62,6 +62,7 @@ SignalAssignment::~SignalAssignment() ; cur != rval_.end() ; ++cur) { delete *cur; } + delete lval_; } ComponentInstantiation::ComponentInstantiation(perm_string i, perm_string c, @@ -77,9 +78,10 @@ ComponentInstantiation::ComponentInstantiation(perm_string i, perm_string c, ComponentInstantiation::~ComponentInstantiation() { - for(map::iterator it = port_map_.begin() - ; it != port_map_.end(); ++it) + for(multimap::iterator it = port_map_.begin() + ; it != port_map_.end(); ++it) { delete it->second; + } } ProcessStatement::ProcessStatement(perm_string iname,