diff options
author | Harry Jeffery <harry@exec64.co.uk> | 2015-11-28 20:46:54 +0000 |
---|---|---|
committer | Harry Jeffery <harry@exec64.co.uk> | 2015-11-28 20:46:54 +0000 |
commit | d5c493878d955cf407296ebad4ff8cce3646ac51 (patch) | |
tree | 894e1e970045164305909b14b3c005fdf16b05b6 /src | |
parent | 3b5c777e4b545a72f5c74630ac0be99c98dae6b6 (diff) | |
download | imv-d5c493878d955cf407296ebad4ff8cce3646ac51.tar.gz |
Clean up overlays on exit
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); |