I created a resource manager in which I have my own templated new function that basically returns a pointer to the created object and stores the pointer of it in a list. in the resource manager's destructor it goes through the list of pointers it stored and deletes them all.
Problems are arising now that im crashing on exit. The last thing in my call stack is this:
> Jumpstart.exe!std::_Tree<std::_Tset_traits<sf::ResourcePtr<sf::Image> *,std::less<sf::ResourcePtr<sf::Image> *>,std::allocator<sf::ResourcePtr<sf::Image> *>,0> >::_Eqrange(sf::ResourcePtr<sf::Image> * const & _Keyval=0x0079d7d0) Line 1133 + 0x8 bytes C++
EDIT: scratch that, even manual calls make it crash =p Is the resourcePointer generated for images and sound buffers self-cleaning?
Also is guessing theres no leaks coming out of sfml though CRT leak checking still reports a couple tiny leaks on exit even though i fully delete all new objects created. Any ideas?