Is it safe to use the same sf::Image variable for more then one bitmap?
If I do this for instance:
sf::Image bitmap;
sf::Sprite sprite;
bitmap.LoadFromFile( "bitmap1.bmp" );
sprite.SetImage( bitmap );
App.Draw( sprite );
// and then do this
bitmap.LoadFromFile( "bitmap2.bmp" );
sprite.SetImage( bitmap ); // do I need to do this again?
App.Draw( sprite );
Is this safe or will I get a memory leak somewhere?