summaryrefslogtreecommitdiffstats
path: root/profile-widget/tankitem.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'profile-widget/tankitem.cpp')
-rw-r--r--profile-widget/tankitem.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/profile-widget/tankitem.cpp b/profile-widget/tankitem.cpp
index ea50dd9cf..f40baa357 100644
--- a/profile-widget/tankitem.cpp
+++ b/profile-widget/tankitem.cpp
@@ -32,6 +32,11 @@ TankItem::TankItem(QObject *parent) :
hAxis = nullptr;
}
+TankItem::~TankItem()
+{
+ free(pInfoEntry);
+}
+
void TankItem::setData(DivePlotDataModel *model, struct plot_info *plotInfo, struct dive *d)
{
// If there is nothing to plot, quit early.