CMenuWidget::saveScreen: Fix segfault

Origin commit data
------------------
Branch: ni/coolstream
Commit: a3e0a0e917
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2016-10-26 (Wed, 26 Oct 2016)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
Michael Liebmann
2016-10-26 13:46:04 +02:00
parent 3e6623f4de
commit 3472c4c80c

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);
} }