fix crashes

git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@995 e54a6e83-5905-42d5-8d5c-058d10e6a962


Origin commit data
------------------
Commit: ff7d5c50cf
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2011-01-03 (Mon, 03 Jan 2011)

Origin message was:
------------------
-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:
Jacek Jendrzej
2011-01-03 09:34:54 +00:00
parent 4f82cec349
commit c1bd2a70a4

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 ? */