Avoid crash in p3tinydisplay when there is no initial window

This commit is contained in:
Ed Swartz 2015-07-31 12:19:08 -05:00 committed by rdb
parent de715b5a0e
commit 9396f998fb

View File

@ -604,6 +604,10 @@ create_full_frame_buffer() {
////////////////////////////////////////////////////////////////////
void TinyXGraphicsWindow::
create_reduced_frame_buffer() {
if (!_full_frame_buffer) {
return;
}
if (_reduced_frame_buffer != NULL) {
ZB_close(_reduced_frame_buffer);
_reduced_frame_buffer = NULL;