mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 21:47:46 +00:00
LibGfx: Give ICC::TagType a virtual destructor
ICC::Profile deletes these objects via base class pointers, so this is needed that destructors in the subclasses get called. (Found by asan on CI when adding test coverage.)
This commit is contained in:
parent
0cfce93e51
commit
d43b306814
1 changed files with 2 additions and 0 deletions
|
@ -34,6 +34,8 @@ public:
|
|||
u32 size() const { return m_size; }
|
||||
TagTypeSignature type() const { return m_type; }
|
||||
|
||||
virtual ~TagData() = default;
|
||||
|
||||
protected:
|
||||
TagData(u32 offset, u32 size, TagTypeSignature type)
|
||||
: m_offset(offset)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue