In SDL, when I destroy a window with SDL_DestroyWindow, do I also need to call SDL_FreeSurface to release the surface that is associated with that window?
SDL_Window *window = SDL_CreateWindow(/*...*/);
SDL_Surface *wsurface = SDL_GetWindowSurface(window);
/*...*/
SDL_FreeSurface(wsurface); /* <- do I also need this line? */
SDL_DestroyWindow(window);
It isn't clear to me if the surface needs to be manually released or if it gets released automatically when I destroy the window.