check before deleting

This commit is contained in:
Dana Jansens 2003-02-02 22:40:20 +00:00
parent 17a3f1e268
commit 8287fb2889

View file

@ -277,7 +277,8 @@ void Widget::render(void)
XSetWindowBackgroundPixmap(**display, _window, _surface->pixmap()); 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) void Widget::adjust(void)