mirror of
https://github.com/KLayout/klayout.git
synced 2026-09-07 02:51:38 +02:00
Fixed a potential segfault of application exit
This commit is contained in:
@@ -327,6 +327,10 @@ Plugin::~Plugin ()
|
||||
if (mp_parent) {
|
||||
mp_parent->unregister_plugin (this);
|
||||
}
|
||||
// remove us from the children's parent
|
||||
for (auto c = m_children.begin (); c != m_children.end (); ++c) {
|
||||
c->mp_parent = 0;
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
|
||||
Reference in New Issue
Block a user