mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-31 17:31:20 +02:00
CComponents: reset saved_screen.pixbuf
It's safe to work with null pointer
This commit is contained in:
@@ -57,6 +57,7 @@ void CComponents::clearSavedScreen()
|
|||||||
{
|
{
|
||||||
if (saved_screen.pixbuf)
|
if (saved_screen.pixbuf)
|
||||||
delete[] saved_screen.pixbuf;
|
delete[] saved_screen.pixbuf;
|
||||||
|
saved_screen.pixbuf = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
void CComponents::initVarBasic()
|
void CComponents::initVarBasic()
|
||||||
@@ -429,6 +430,7 @@ void CComponentsInfoBox::removeLineBreaks(std::string& str)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
//-------------------------------------------------------------------------------------------------------
|
//-------------------------------------------------------------------------------------------------------
|
||||||
//sub class CComponentsShapeSquare from CComponentsContainer
|
//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)
|
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)
|
||||||
|
Reference in New Issue
Block a user