mirror of
https://github.com/SerenityOS/serenity
synced 2024-10-14 20:03:29 +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
|
@ -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…
Reference in a new issue