mirror of
https://github.com/genodelabs/genode.git
synced 2025-01-18 18:56:29 +00:00
nitpicker: fix Domain_registry destructor
When reloading the nitpicker configuration, the destructor would get stuck, trying to destroy the same object again and again.
This commit is contained in:
parent
852a250e03
commit
66e5796017
@ -222,8 +222,10 @@ class Domain_registry
|
||||
|
||||
~Domain_registry()
|
||||
{
|
||||
while (Entry *e = _entries.first())
|
||||
while (Entry *e = _entries.first()) {
|
||||
_entries.remove(e);
|
||||
Genode::destroy(_alloc, e);
|
||||
}
|
||||
}
|
||||
|
||||
Entry const *lookup(Entry::Name const &name) const
|
||||
|
Loading…
Reference in New Issue
Block a user