[Object] Remove object name from name_table on object removal
This commit is contained in:
parent
052ce3d389
commit
4cc2dad005
|
@ -205,6 +205,10 @@ X_STATUS ObjectTable::RemoveHandle(X_HANDLE handle) {
|
|||
|
||||
XELOGI("Removed handle:{:08X} for {}", handle, typeid(*object).name());
|
||||
|
||||
// Remove object name from mapping to prevent naming collision.
|
||||
if (!object->name().empty()) {
|
||||
RemoveNameMapping(object->name());
|
||||
}
|
||||
// Release now that the object has been removed from the table.
|
||||
object->Release();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue