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