1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 16:37:35 +00:00

GraphicsBitmap: munmap() pixels on destruction of self-allocating bitmaps.

This commit is contained in:
Andreas Kling 2019-04-26 18:25:05 +02:00
parent d93c278d29
commit e90b501b31
2 changed files with 7 additions and 0 deletions

View file

@ -43,6 +43,7 @@ private:
RGBA32* m_data { nullptr };
size_t m_pitch { 0 };
Format m_format { Format::Invalid };
bool m_needs_munmap { false };
MappedFile m_mapped_file;
RetainPtr<SharedBuffer> m_shared_buffer;
};