diff layer/SpectrogramLayer.h @ 1242:b10bd0611d16

Fix various "model deleted with no aboutToDelete notification" warnings (and one associated potential memory leak)
author Chris Cannam
date Wed, 22 Feb 2017 12:01:39 +0000
parents a496986aa61b
children a34a2a25907c
line wrap: on
line diff
--- a/layer/SpectrogramLayer.h	Wed Feb 22 09:53:58 2017 +0000
+++ b/layer/SpectrogramLayer.h	Wed Feb 22 12:01:39 2017 +0000
@@ -320,6 +320,8 @@
     mutable ViewRendererMap m_renderers;
     Colour3DPlotRenderer *getRenderer(LayerGeometryProvider *) const;
     void invalidateRenderers();
+
+    void deleteDerivedModels();
     
     void paintWithRenderer(LayerGeometryProvider *v, QPainter &paint, QRect rect) const;