aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHarry Jeffery <harry@exec64.co.uk>2015-11-28 20:07:09 +0000
committerHarry Jeffery <harry@exec64.co.uk>2015-11-28 20:07:09 +0000
commit9d8a6eb16d1b49c7d0b0fe1e1e62360dc9861439 (patch)
tree16fa35faf7f01c816487083222056f1dbe454d1d /src
parentbde5bf6aa91c85ceb94b144fe4cc6f1280ef9d68 (diff)
downloadimv-9d8a6eb16d1b49c7d0b0fe1e1e62360dc9861439.tar.gz
Use correct free function for SDL_Surface
Diffstat (limited to 'src')
-rw-r--r--src/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index f947307..0be4788 100644
--- a/src/main.c
+++ b/src/main.c
@@ -349,7 +349,7 @@ int main(int argc, char** argv)
imv_viewport_set_title(&view, title);
if(overlay_surf) {
- free(overlay_surf);
+ SDL_FreeSurface(overlay_surf);
overlay_surf = NULL;
}
if(overlay_tex) {