Yeah because in the first he creates a list of renderwindow and deletes at the end .. in the second no. I don't see how this is related to SFML.
of course if you put your window in a list for no reason it will be longer.
I don't remember having to create a list of renderwindow in sfml 2.1 to make things work