diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/main.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -423,6 +423,12 @@ int main(int argc, char** argv) TTF_CloseFont(font); } TTF_Quit(); + if(overlay_surf) { + SDL_FreeSurface(overlay_surf); + } + if(overlay_tex) { + SDL_DestroyTexture(overlay_tex); + } SDL_DestroyTexture(chequered_tex); SDL_DestroyRenderer(renderer); SDL_DestroyWindow(window); |