Fix leaking of FPS counter surface when switching resolutions
Fix small memory leak in listModes()