some inits

This commit is contained in:
Jacek Jendrzej
2017-01-30 19:04:17 +01:00
parent f4f351e9ba
commit 0056a53321
3 changed files with 3 additions and 1 deletions

View File

@@ -387,6 +387,7 @@ CComponentsChannelLogo::CComponentsChannelLogo( const int &x_pos, const int &y_p
void CComponentsChannelLogo::init(const uint64_t& channelId, const std::string& channelName, bool allow_scale)
{
channel_name = "";
channel_id = 0;
alt_pic_name = "";
setChannel(channelId, channelName);
do_scale = allow_scale;

View File

@@ -217,7 +217,7 @@ CProgressBarCache *CProgressBarCache::pbcLookup(int dy, int dx, int active_col,
if (it != pbCache.end())
return *it;
CProgressBarCache *pbc = new CProgressBarCache(dy, dx, active_col, passive_col, design, enable_invert, enable_gradient, R, G, Y);
static CProgressBarCache *pbc = new CProgressBarCache(dy, dx, active_col, passive_col, design, enable_invert, enable_gradient, R, G, Y);
pbCache.push_back(pbc);
return pbc;
}