check before deleting
This commit is contained in:
parent
17a3f1e268
commit
8287fb2889
1 changed files with 2 additions and 1 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue