Delete dynamically allocated objects in vhdlpp
This commit is contained in:
parent
dcfe1f0c2c
commit
547ea61be8
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in New Issue