diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-03-30 03:01:07 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-03-30 03:07:24 +0300 |
commit | 1ca6f9ef6e0b4895976f2de5199519afd327ac8b (patch) | |
tree | 3d5594243de92cd579948b18e88e95b82d16f919 /src/fs/virtfs/virtfsdirrwops.cpp | |
parent | 399311ae5dc729ff0c0aea08510ed7b2662ca3e2 (diff) | |
download | plus-1ca6f9ef6e0b4895976f2de5199519afd327ac8b.tar.gz plus-1ca6f9ef6e0b4895976f2de5199519afd327ac8b.tar.bz2 plus-1ca6f9ef6e0b4895976f2de5199519afd327ac8b.tar.xz plus-1ca6f9ef6e0b4895976f2de5199519afd327ac8b.zip |
Improve VirtFsDir::rwops_close.
Diffstat (limited to 'src/fs/virtfs/virtfsdirrwops.cpp')
-rw-r--r-- | src/fs/virtfs/virtfsdirrwops.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
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<VirtFile*>( rw->hidden.unknown.data1); - if (!VirtFs::close(handle)) - { - logger->assertLog("VirtFs::rwops_seek: close error."); - return -1; - } - + delete handle; SDL_FreeRW(rw); return 0; } |