check before deleting
Dana Jansens danakj@orodu.net
1 files changed,
2 insertions(+),
1 deletions(-)
jump to
M
otk/widget.cc
→
otk/widget.cc
@@ -277,7 +277,8 @@ renderForeground(); // for inherited types to render onto the _surface
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)