Slower allocation second time?

In my game I noticed that my levels were loading slower the more I loaded them.
GameState has a Level object pointer which gets initialized in the constructor and deleted in the destructor. First time a GameState object is allocated, my level loads instantly. When I quit to main menu and allocate another GameState object, it loads seconds slower...

What could cause this?
Can you provide sample of the allocations and call sites that during a state change? Also, is the destructor being called when you quit to main menu? Meaning are you freeing the 'old' Level object pointer then allocating new for a 'different' level?
It seems I've jumped to conclusions too fast. The screen hanged, so I thougth it was still running the load function. Turns out, the load function finished instantly and it was the draw function that seemed to be taking so long.

This means it's sfml-specific, so I'm heading over to the SFML forums now :)
Topic archived. No new replies allowed.