-fix crashes

git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@995 e54a6e83-5905-42d5-8d5c-058d10e6a962
This commit is contained in:
satbaby
2011-01-03 09:34:54 +00:00
parent e749077ce1
commit ff7d5c50cf

View File

@@ -841,11 +841,15 @@ void CFrameBuffer::setIconBasePath(const std::string & iconPath)
void CFrameBuffer::getIconSize(const char * const filename, int* width, int *height)
{
std::map<std::string, rawIcon>::iterator it;
*width = 0;
*height = 0;
if(filename == NULL)
return;
std::map<std::string, rawIcon>::iterator it;
/* if code ask for size, lets cache it. assume we have enough ram for cache */
/* FIXME offset seems never used in code, always default = 1 ? */