| 306 | } |
| 307 | |
| 308 | virtual_identity::~virtual_identity() |
| 309 | { |
| 310 | // Remove interpose entries, so that they don't try accessing this object later |
| 311 | auto& interpose_list = (*interpose_list_map)[this]; |
| 312 | for (auto it = interpose_list.begin(); it != interpose_list.end(); ++it) |
| 313 | if (it->second) |
| 314 | it->second->on_host_delete(this); |
| 315 | interpose_list.clear(); |
| 316 | |
| 317 | // Remove global lookup table entries if we're from a plugin |
| 318 | if (is_plugin) |
| 319 | { |
| 320 | (*name_lookup).erase(getOriginalName()); |
| 321 | |
| 322 | if (vtable_ptr()) |
| 323 | (*known).erase(vtable_ptr()); |
| 324 | } |
| 325 | } |
| 326 | |
| 327 | void virtual_identity::doInit(Core *core) const |
| 328 | { |
nothing calls this directly
no test coverage detected