I am using SFML 1.6 under Arch Linux, and I came across a small problem. When running my code through Valgrind, it says:
"28 bytes in block 1 definitely lost"
or something like that. Here is the offending line:
sf::VideoMode best_mode = sf::VideoMode::GetMode(0);
It has the same leak if I use a constructor list:
sf::VideoMode best_mode;
void Initialise() : best_mode(sf::VideoMode::GetMode(0))
{
...
}
Is this an error in SFML, or am I doing something wrong?