summaryrefslogtreecommitdiff
path: root/src/fs/virtfsdir.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/fs/virtfsdir.cpp')
-rw-r--r--src/fs/virtfsdir.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/fs/virtfsdir.cpp b/src/fs/virtfsdir.cpp
index c3471b2d7..249317773 100644
--- a/src/fs/virtfsdir.cpp
+++ b/src/fs/virtfsdir.cpp
@@ -30,6 +30,7 @@
#include "fs/virtlist.h"
#include "utils/checkutils.h"
+#include "utils/dtor.h"
#include "utils/stringutils.h"
#include <dirent.h>
@@ -40,10 +41,6 @@
#include <sys/types.h>
#include <sys/stat.h>
-#ifdef ANDROID
-#include "fs/paths.h"
-#endif // ANDROID
-
#include "debug.h"
extern const char *dirSeparator;
@@ -249,6 +246,7 @@ namespace VirtFsDir
void deinit()
{
+ delete_all(mEntries);
mEntries.clear();
}
@@ -525,7 +523,7 @@ namespace VirtFsDir
const uint64_t pos)
{
if (file == nullptr)
- return -1;
+ return 0;
const int fd = file->mPrivate->mFd;
if (fd == -1)