aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
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) {