Horde3D
http://horde3d.org/forums/

Beta4: ResourceManager::~ResourceManager
http://horde3d.org/forums/viewtopic.php?f=3&t=1109
Page 1 of 1

Author:  eagle [ 25.02.2010, 15:48 ]
Post subject:  Beta4: ResourceManager::~ResourceManager

Code:
ResourceManager::~ResourceManager()
{
   clear();

   // Release resource types
   map< int, ResourceRegEntry >::const_iterator itr = _registry.begin();
   while( itr != _registry.end() )
   {
      if( itr->second.initializationFunc != 0x0 )
         (*itr->second.initializationFunc)();

      ++itr;
   }
}


I think releaseFunc must be called here, not initializationFunc.

Author:  marciano [ 28.02.2010, 18:15 ]
Post subject:  Re: Beta4: ResourceManager::~ResourceManager

Thanks for spotting that!

Page 1 of 1 All times are UTC + 1 hour
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/