~NameIndex(): Make more robust
Remove the listener only, if it was registered.
This commit is contained in:
parent
8373bcd169
commit
670b0d106a
@ -130,7 +130,7 @@ NameIndex::NameIndex()
|
||||
|
||||
NameIndex::~NameIndex()
|
||||
{
|
||||
if (fVolume != NULL)
|
||||
if (IsListening())
|
||||
fVolume->RemoveNodeListener(this);
|
||||
|
||||
delete fEntries;
|
||||
|
Loading…
Reference in New Issue
Block a user