summaryrefslogtreecommitdiff
path: root/src/fs/virtfs/virtfsziprwops.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/fs/virtfs/virtfsziprwops.cpp')
-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;
}