aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index 1ce274b..aa0899f 100644
--- a/src/main.c
+++ b/src/main.c
@@ -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);