diff --git a/desktop_version/src/GraphicsResources.cpp b/desktop_version/src/GraphicsResources.cpp index b7eb7c1b..d7b2107d 100644 --- a/desktop_version/src/GraphicsResources.cpp +++ b/desktop_version/src/GraphicsResources.cpp @@ -110,4 +110,27 @@ void GraphicsResources::init(void) GraphicsResources::~GraphicsResources(void) { + SDL_FreeSurface(im_tiles); + SDL_FreeSurface(im_tiles2); + SDL_FreeSurface(im_tiles3); + SDL_FreeSurface(im_entcolours); + SDL_FreeSurface(im_sprites); + SDL_FreeSurface(im_flipsprites); + SDL_FreeSurface(im_bfont); + SDL_FreeSurface(im_bfontmask); + SDL_FreeSurface(im_teleporter); + + SDL_FreeSurface(im_image0); + SDL_FreeSurface(im_image1); + SDL_FreeSurface(im_image2); + SDL_FreeSurface(im_image3); + SDL_FreeSurface(im_image4); + SDL_FreeSurface(im_image5); + SDL_FreeSurface(im_image6); + SDL_FreeSurface(im_image7); + SDL_FreeSurface(im_image8); + SDL_FreeSurface(im_image9); + SDL_FreeSurface(im_image10); + SDL_FreeSurface(im_image11); + SDL_FreeSurface(im_image12); }