Delete dynamically allocated objects in vhdlpp

This commit is contained in:
Pawel Szostek 2011-07-13 08:55:49 +02:00 committed by Stephen Williams
parent dcfe1f0c2c
commit 547ea61be8
1 changed files with 4 additions and 2 deletions

View File

@ -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<perm_string, Expression*>::iterator it = port_map_.begin()
; it != port_map_.end(); ++it)
for(multimap<perm_string, Expression*>::iterator it = port_map_.begin()
; it != port_map_.end(); ++it) {
delete it->second;
}
}
ProcessStatement::ProcessStatement(perm_string iname,