summaryrefslogtreecommitdiff
path: root/otk/widget.cc
diff options
context:
space:
mode:
Diffstat (limited to 'otk/widget.cc')
-rw-r--r--otk/widget.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/otk/widget.cc b/otk/widget.cc
index c3e17cbe..9708977d 100644
--- 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)