From 4e86d997141dc7cd9e83b6c6a4a47ebdcaa4ebd6 Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Mon, 15 Jul 2019 20:41:42 +0200 Subject: Cleanup: free plot data on exit Some widgets copy the full plot info. Free these data on exit to prevent monstrous valgrind reports. Signed-off-by: Berthold Stoeger --- profile-widget/tankitem.h | 1 + 1 file changed, 1 insertion(+) (limited to 'profile-widget/tankitem.h') diff --git a/profile-widget/tankitem.h b/profile-widget/tankitem.h index 73994444b..ff86f787d 100644 --- a/profile-widget/tankitem.h +++ b/profile-widget/tankitem.h @@ -15,6 +15,7 @@ class TankItem : public QObject, public QGraphicsRectItem public: explicit TankItem(QObject *parent = 0); + ~TankItem(); void setHorizontalAxis(DiveCartesianAxis *horizontal); void setData(DivePlotDataModel *model, struct plot_info *plotInfo, struct dive *d); -- cgit v1.2.3-70-g09d2