Added garbage collection methods to SfmlWindow.