summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libvo/vo_fbdev.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libvo/vo_fbdev.c b/libvo/vo_fbdev.c
index 128a2aac26..8c668fe8b4 100644
--- a/libvo/vo_fbdev.c
+++ b/libvo/vo_fbdev.c
@@ -1057,6 +1057,8 @@ static void uninit(void)
mp_msg(MSGT_VO, MSGL_WARN, "Can't restore text mode: %s\n", strerror(errno));
}
vt_set_textarea(0, fb_orig_vinfo.yres);
+ if (vt_fp)
+ fclose(vt_fp);
close(fb_tty_fd);
close(fb_dev_fd);
if (frame_buffer)