From 1ca6f9ef6e0b4895976f2de5199519afd327ac8b Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 30 Mar 2017 03:01:07 +0300 Subject: Improve VirtFsDir::rwops_close. --- src/fs/virtfs/virtfsdirrwops.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'src/fs/virtfs/virtfsdirrwops.cpp') diff --git a/src/fs/virtfs/virtfsdirrwops.cpp b/src/fs/virtfs/virtfsdirrwops.cpp index bd8e2f594..2170dd05f 100644 --- a/src/fs/virtfs/virtfsdirrwops.cpp +++ b/src/fs/virtfs/virtfsdirrwops.cpp @@ -220,12 +220,7 @@ namespace VirtFsDir 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