Horde3D

Next-Generation Graphics Engine
It is currently 28.03.2024, 09:45

All times are UTC + 1 hour




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: 25.02.2010, 15:48 
Offline

Joined: 25.02.2010, 15:32
Posts: 1
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.


Top
 Profile  
Reply with quote  
PostPosted: 28.02.2010, 18:15 
Offline
Engine Developer

Joined: 10.09.2006, 15:52
Posts: 1217
Thanks for spotting that!


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 24 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group