Fix crash on port unregistration
pr->erase (*i); deletes the iterator, it cannot be safely dereferenced again later.
This commit is contained in:
parent
b9419aa405
commit
ef08c819da
@ -457,7 +457,7 @@ PortEngineSharedImpl::unregister_port (PortEngine::PortHandle port_handle)
|
||||
|
||||
pm->erase (port->name());
|
||||
ps->erase (i);
|
||||
pr->erase (*i);
|
||||
pr->erase (port);
|
||||
}
|
||||
|
||||
_ports.flush ();
|
||||
|
Loading…
Reference in New Issue
Block a user