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:
Nico Weber 2023-02-01 11:14:03 -05:00 committed by Andreas Kling
parent 0cfce93e51
commit d43b306814

View file

@ -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)