CComponents: reset saved_screen.pixbuf

It's safe to work with null pointer
This commit is contained in:
2012-09-08 19:39:58 +02:00
parent 458cec23bf
commit 09b8b29176

View File

@@ -57,6 +57,7 @@ void CComponents::clearSavedScreen()
{
if (saved_screen.pixbuf)
delete[] saved_screen.pixbuf;
saved_screen.pixbuf = NULL;
}
void CComponents::initVarBasic()
@@ -429,6 +430,7 @@ void CComponentsInfoBox::removeLineBreaks(std::string& str)
}
}
//-------------------------------------------------------------------------------------------------------
//sub class CComponentsShapeSquare from CComponentsContainer
CComponentsShapeSquare::CComponentsShapeSquare(const int x_pos, const int y_pos, const int w, const int h, bool has_shadow, fb_pixel_t color_frame, fb_pixel_t color_body, fb_pixel_t color_shadow)