From: Dana Jansens Date: Sun, 2 Feb 2003 22:40:20 +0000 (+0000) Subject: check before deleting X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=8287fb288943febac397e36eb7674af3f2bb7493;p=chaz%2Fopenbox check before deleting --- 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)