Added comment about memory leak reported by valgrind.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9980 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
76df1fa694
commit
f6453f2557
@ -93,6 +93,9 @@ IrrDriver::~IrrDriver()
|
||||
*/
|
||||
void IrrDriver::createListOfVideoModes()
|
||||
{
|
||||
// Note that this is actually reported by valgrind as a leak, but it is
|
||||
// a leak in irrlicht: this list is dynamically created the first time
|
||||
// it is used, but then not cleaned on exit.
|
||||
video::IVideoModeList* modes = m_device->getVideoModeList();
|
||||
const int count = modes->getVideoModeCount();
|
||||
|
||||
@ -110,7 +113,6 @@ void IrrDriver::createListOfVideoModes()
|
||||
m_modes.push_back( mode );
|
||||
} // if depth >=24
|
||||
} // for i < video modes count
|
||||
|
||||
} // createListOfVideoModes
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user