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:
f1c0bee
)
delete the surface in destructor
author
Dana Jansens
<danakj@orodu.net>
Sun, 2 Feb 2003 22:29:39 +0000
(22:29 +0000)
committer
Dana Jansens
<danakj@orodu.net>
Sun, 2 Feb 2003 22:29:39 +0000
(22:29 +0000)
otk/widget.cc
patch
|
blob
|
history
diff --git
a/otk/widget.cc
b/otk/widget.cc
index 0675bf6ac290f709ad8ae3d9f107c6fa1871699b..c3e17cbe5a181cdcefd8bd97b7c6cceb771348be 100644
(file)
--- a/
otk/widget.cc
+++ b/
otk/widget.cc
@@
-59,6
+59,9
@@
Widget::~Widget()
if (_visible)
hide();
+ if (_surface)
+ delete _surface;
+
_event_dispatcher->clearHandler(_window);
std::for_each(_children.begin(), _children.end(), PointerAssassin());