From: Dana Jansens Date: Mon, 6 Jan 2003 04:33:37 +0000 (+0000) Subject: clean up transient's parent's reference in destructor X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=1297c7c157584599f474aa13effaca5a866bfb14;p=chaz%2Fopenbox clean up transient's parent's reference in destructor --- diff --git a/src/client.cc b/src/client.cc index 34edff3e..b77eb8f0 100644 --- a/src/client.cc +++ b/src/client.cc @@ -72,6 +72,10 @@ OBClient::~OBClient() { const otk::OBProperty *property = Openbox::instance->property(); + // clean up parents reference to this + if (_transient_for) + _transient_for->_transients.remove(this); // remove from old parent + if (Openbox::instance->state() != Openbox::State_Exiting) { // these values should not be persisted across a window unmapping/mapping property->erase(_window, otk::OBProperty::net_wm_desktop);