CMenuWidget::saveScreen: Fix segfault

Origin commit data
------------------
Commit: a3e0a0e917
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2016-10-26 (Wed, 26 Oct 2016)
This commit is contained in:
Michael Liebmann
2016-10-26 13:46:04 +02:00
parent 38046c788e
commit b31ef0e0e0

View File

@@ -1389,7 +1389,7 @@ void CMenuWidget::saveScreen()
delete[] background; delete[] background;
background = new fb_pixel_t [full_width * full_height]; background = new fb_pixel_t [full_width * (full_height+fbutton_height)];
if(background) if(background)
frameBuffer->SaveScreen(x /*-ConnectLineBox_Width*/, y, full_width, full_height + fbutton_height, background); frameBuffer->SaveScreen(x /*-ConnectLineBox_Width*/, y, full_width, full_height + fbutton_height, background);
} }