From 8571268d21deced25ac2cd332f3976f67f953e94 Mon Sep 17 00:00:00 2001 From: Anton Lundin Date: Thu, 18 Dec 2014 08:47:51 +0100 Subject: Have ProfileWidget2 delete its allocated data This creates a destructor for ProfileWidget2 that deletetes its new'ed objects on exit. Signed-off-by: Anton Lundin Signed-off-by: Dirk Hohndel --- qt-ui/profile/profilewidget2.h | 1 + 1 file changed, 1 insertion(+) (limited to 'qt-ui/profile/profilewidget2.h') diff --git a/qt-ui/profile/profilewidget2.h b/qt-ui/profile/profilewidget2.h index 9808a964b..5a612d983 100644 --- a/qt-ui/profile/profilewidget2.h +++ b/qt-ui/profile/profilewidget2.h @@ -120,6 +120,7 @@ slots: // Necessary to call from QAction's signals. void divePlannerHandlerClicked(); void divePlannerHandlerReleased(); protected: + virtual ~ProfileWidget2(); virtual void resizeEvent(QResizeEvent *event); virtual void wheelEvent(QWheelEvent *event); virtual void mouseMoveEvent(QMouseEvent *event); -- cgit v1.2.3-70-g09d2