projects
/
dana
/
openbox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
870f6cc
)
clean up childrens' transient_for refs
author
Dana Jansens
<danakj@orodu.net>
Sun, 12 Jan 2003 18:29:17 +0000
(18:29 +0000)
committer
Dana Jansens
<danakj@orodu.net>
Sun, 12 Jan 2003 18:29:17 +0000
(18:29 +0000)
src/client.cc
patch
|
blob
|
history
diff --git
a/src/client.cc
b/src/client.cc
index 44e4d9eb550f691548532ac194a19dd9a96f492b..0fc485c8eec30aa533801761d9dedb0fe8865e5a 100644
(file)
--- 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