From 330dc04ab600ac3626bca1626845f59fd4974cc0 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 30 Mar 2017 04:23:36 +0300 Subject: Improve VirtFsZip::rwops_close. --- src/fs/virtfs/virtfsziprwops.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'src/fs') diff --git a/src/fs/virtfs/virtfsziprwops.cpp b/src/fs/virtfs/virtfsziprwops.cpp index 31d7331c0..be7d85230 100644 --- a/src/fs/virtfs/virtfsziprwops.cpp +++ b/src/fs/virtfs/virtfsziprwops.cpp @@ -129,12 +129,7 @@ namespace VirtFsZip return 0; VirtFile *const handle = static_cast( rw->hidden.unknown.data1); - if (!VirtFs::close(handle)) - { - logger->assertLog("VirtFs::rwops_seek: close error."); - return -1; - } - + delete handle; SDL_FreeRW(rw); return 0; } -- cgit v1.2.3-70-g09d2