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:
17a3f1e
)
check before deleting
author
Dana Jansens
<danakj@orodu.net>
Sun, 2 Feb 2003 22:40:20 +0000
(22:40 +0000)
committer
Dana Jansens
<danakj@orodu.net>
Sun, 2 Feb 2003 22:40:20 +0000
(22:40 +0000)
otk/widget.cc
patch
|
blob
|
history
diff --git
a/otk/widget.cc
b/otk/widget.cc
index c3e17cbe5a181cdcefd8bd97b7c6cceb771348be..9708977d47732ffa03f674eb06c25fa78cf63c1e 100644
(file)
--- a/
otk/widget.cc
+++ b/
otk/widget.cc
@@
-277,7
+277,8
@@
void Widget::render(void)
XSetWindowBackgroundPixmap(**display, _window, _surface->pixmap());
- delete s; // delete the old surface *after* its pixmap isn't in use anymore
+ if (s)
+ delete s; // delete the old surface *after* its pixmap isn't in use anymore
}
void Widget::adjust(void)