CComponents: reset saved_screen.pixbuf

It's safe to work with null pointer


Origin commit data
------------------
Branch: ni/coolstream
Commit: 09b8b29176
Author: Thilo Graf <dbt@novatux.de>
Date: 2012-09-08 (Sat, 08 Sep 2012)



------------------
This commit was generated by Migit
This commit is contained in:
2012-09-08 19:39:58 +02:00
parent 436c6d4ee0
commit 839b0cfc43

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)