Darn my mistake, forgot minimal code.
Here it is:
#include <SFML\Graphics.hpp>
#include "ImageManager.hpp"
ImageManager imgmng;
int main()
{
sf::RenderWindow App(sf::VideoMode(560,270,32),"Error");
imgmng.GetImage("any.png");
return 0;
}
Just this reproduces the error. On the image manager that i linked above I just replaced sf::Image with sf::texture for SFML 2.0 and included these headers that were missing:
#include <SFML/Graphics.hpp>
#include <map>
#include <string>
When closing, the call stack points to delete it->second; on the destructor.