diff options
-rw-r--r-- | libvo/vo_s3fb.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libvo/vo_s3fb.c b/libvo/vo_s3fb.c index 91af64ec29..8f9c7ceef7 100644 --- a/libvo/vo_s3fb.c +++ b/libvo/vo_s3fb.c @@ -265,9 +265,9 @@ static int preinit(const char *arg) if((long)smem == -1) { mp_msg(MSGT_VO, MSGL_FATAL, "s3fb: Couldn't map memory areas: %s\n", strerror(errno)); - if((long)smem != -1) - munmap(smem, fb_finfo.smem_len); smem = NULL; + close(fd); + fd = -1; return -1; } |