DEV Community

Discussion on: Using SDL2: Moving an image

Collapse
 
alexvanvliet profile image
Alex

Hey, thanks for the awesome series! I just wanted to point out that in the destructor of the application, I'm not sure SDL_FreeSurface(m_window_surface); should be called as the documentation of SDL_GetWindowSurface says that the window surface is automatically freed when the window is destroyed