From: Dana Jansens Date: Sun, 12 Jan 2003 18:29:17 +0000 (+0000) Subject: clean up childrens' transient_for refs X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=7bfe234d812f14eed1a7d20db9479780390adc99;p=chaz%2Fopenbox clean up childrens' transient_for refs --- diff --git a/src/client.cc b/src/client.cc index 44e4d9eb..0fc485c8 100644 --- a/src/client.cc +++ b/src/client.cc @@ -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