diff --git a/src/legend/qlegendmarker.cpp b/src/legend/qlegendmarker.cpp index 5023fa8..ac67923 100644 --- a/src/legend/qlegendmarker.cpp +++ b/src/legend/qlegendmarker.cpp @@ -260,6 +260,7 @@ QLegendMarkerPrivate::QLegendMarkerPrivate(QLegendMarker *q, QLegend *legend) : QLegendMarkerPrivate::~QLegendMarkerPrivate() { + delete m_item; } void QLegendMarkerPrivate::invalidateLegend()