Fix some memory leaks
This commit is contained in:
parent
fd8017449d
commit
fb5fb497b5
@ -207,6 +207,18 @@ struct BaseCtx
|
||||
IdString::initialize_add(this, "", 0);
|
||||
IdString::initialize_arch(this);
|
||||
}
|
||||
|
||||
~BaseCtx()
|
||||
{
|
||||
for(auto &item : nets) {
|
||||
delete item.second;
|
||||
}
|
||||
for(auto &item : cells) {
|
||||
delete item.second;
|
||||
}
|
||||
delete idstring_str_to_idx;
|
||||
delete idstring_idx_to_str;
|
||||
}
|
||||
};
|
||||
|
||||
NEXTPNR_NAMESPACE_END
|
||||
|
@ -227,7 +227,6 @@ void DesignWidget::prepareMenu(const QPoint &pos)
|
||||
QMenu menu(this);
|
||||
menu.addAction(selectAction);
|
||||
|
||||
QPoint pt(pos);
|
||||
menu.exec(tree->mapToGlobal(pos));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user