Free old surface before creating new one
Merge pull request #1220 from inolen/free_surface

SDL_SetVideoMode: Free old surface before creating new one