X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=src%2Fclient.cc;h=0fc485c8eec30aa533801761d9dedb0fe8865e5a;hb=805a5dddce6d072c3a3e2485585ee5630688a845;hp=44e4d9eb550f691548532ac194a19dd9a96f492b;hpb=77ab46d1e35d48e73c201e6de88b26f48bb06425;p=chaz%2Fopenbox 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