summaryrefslogtreecommitdiff
path: root/src/fs/virtfs/virtfileprivate.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-03-11 21:39:42 +0300
committerAndrei Karas <akaras@inbox.ru>2017-03-11 21:39:42 +0300
commita721e4898f71a68ecb916940864599d462880e5b (patch)
tree50442e8b86707221f498ea0f304a5314a0e67430 /src/fs/virtfs/virtfileprivate.cpp
parent81b97b30afa0c72e5ff17162c7d1fa88dd6187fb (diff)
downloadplus-a721e4898f71a68ecb916940864599d462880e5b.tar.gz
plus-a721e4898f71a68ecb916940864599d462880e5b.tar.bz2
plus-a721e4898f71a68ecb916940864599d462880e5b.tar.xz
plus-a721e4898f71a68ecb916940864599d462880e5b.zip
Fix different issues found by automatic checks.
Diffstat (limited to 'src/fs/virtfs/virtfileprivate.cpp')
-rw-r--r--src/fs/virtfs/virtfileprivate.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/fs/virtfs/virtfileprivate.cpp b/src/fs/virtfs/virtfileprivate.cpp
index 682992c68..5baadbc15 100644
--- a/src/fs/virtfs/virtfileprivate.cpp
+++ b/src/fs/virtfs/virtfileprivate.cpp
@@ -22,7 +22,6 @@
#include "fs/virtfs/virtfileprivate.h"
#include <unistd.h>
-#include <zlib.h>
#include "debug.h"
@@ -55,7 +54,6 @@ VirtFilePrivate::~VirtFilePrivate()
{
if (mFd != FILEHDEFAULT)
FILECLOSE(mFd);
- if (mBuf)
- delete [] mBuf;
+ delete [] mBuf;
}
#endif // USE_PHYSFS