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:
Norman Feske 2015-06-03 21:35:33 +02:00 committed by Christian Helmuth
parent 852a250e03
commit 66e5796017

View File

@ -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