Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 41f690ba authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Fix leak of mapped zip central directories"

parents f74ff744 ce1c49da
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -79,7 +79,7 @@ MappedFile::~MappedFile() {
  if (base_ != nullptr) UnmapViewOfFile(base_);
  if (handle_ != nullptr) CloseHandle(handle_);
#else
  if (base_ != nullptr) munmap(base_, size_);
  if (base_ != nullptr) munmap(base_, size_ + offset_);
#endif

  base_ = nullptr;