Adding this code to my program while using WindowsXP SP3 and Visual Studio 2008 Express results in a memory leak.
sf::RenderWindow m_window;
Detected memory leaks!
Dumping objects ->
{123} normal block at 0x016A6660, 20 bytes long.
Data: <`fj `fj `fj > 60 66 6A 01 60 66 6A 01 60 66 6A 01 CD CD CD CD
{122} normal block at 0x016A6548, 216 bytes long.
Data: < u > AC 75 86 00 01 00 00 00 01 00 00 00 00 00 00 00
{121} normal block at 0x016A6508, 4 bytes long.
Data: <Hej > 48 65 6A 01
Object dump complete.
Memory report is achieved with:
#if defined (_DEBUG) && defined(_MSC_VER)
long flag = _CrtSetDbgFlag(_CRTDBG_REPORT_FLAG);
flag |= _CRTDBG_LEAK_CHECK_DF | _CRTDBG_CHECK_ALWAYS_DF;
_CrtSetDbgFlag(flag);
#endif /* _MSC_VER && _DEBUG */
I have debugged my own application from begin() to end() and if I remove the sfml-code, there are no more leaks. So I can safely say, that it is coming from sfml.
regards.