clean up childrens' transient_for refs
This commit is contained in:
parent
870f6cca3d
commit
7bfe234d81
1 changed files with 6 additions and 0 deletions
|
@ -74,6 +74,12 @@ Client::~Client()
|
|||
{
|
||||
const otk::Property *property = Openbox::instance->property();
|
||||
|
||||
// clean up childrens' references
|
||||
while (!_transients.empty()) {
|
||||
_transients.front()->_transient_for = 0;
|
||||
_transients.pop_front();
|
||||
}
|
||||
|
||||
// clean up parents reference to this
|
||||
if (_transient_for)
|
||||
_transient_for->_transients.remove(this); // remove from old parent
|
||||
|
|
Loading…
Reference in a new issue