summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-03-30 04:23:36 +0300
committerAndrei Karas <akaras@inbox.ru>2017-03-30 04:23:36 +0300
commit330dc04ab600ac3626bca1626845f59fd4974cc0 (patch)
tree88ca4be86ebc63437f6b4f8c4b116be9c62d981d
parentb20b9dced23166491f7ae07ec1658c813b74c5ca (diff)
downloadmanaplus-330dc04ab600ac3626bca1626845f59fd4974cc0.tar.gz
manaplus-330dc04ab600ac3626bca1626845f59fd4974cc0.tar.bz2
manaplus-330dc04ab600ac3626bca1626845f59fd4974cc0.tar.xz
manaplus-330dc04ab600ac3626bca1626845f59fd4974cc0.zip
Improve VirtFsZip::rwops_close.
-rw-r--r--src/fs/virtfs/virtfsziprwops.cpp7
1 files changed, 1 insertions, 6 deletions
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<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;
}