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,6 +277,7 @@ void Widget::render(void)
XSetWindowBackgroundPixmap(**display, _window, _surface->pixmap()); XSetWindowBackgroundPixmap(**display, _window, _surface->pixmap());
if (s)
delete s; // delete the old surface *after* its pixmap isn't in use anymore delete s; // delete the old surface *after* its pixmap isn't in use anymore
} }