diff options
Diffstat (limited to 'qt-ui/profile/tankitem.cpp')
-rw-r--r-- | qt-ui/profile/tankitem.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/qt-ui/profile/tankitem.cpp b/qt-ui/profile/tankitem.cpp index 42692aacd..619368051 100644 --- a/qt-ui/profile/tankitem.cpp +++ b/qt-ui/profile/tankitem.cpp @@ -33,6 +33,13 @@ TankItem::TankItem(QObject *parent) : memset(&diveCylinderStore, 0, sizeof(diveCylinderStore)); } +TankItem::~TankItem() +{ + // Should this be clear_dive(diveCylinderStore)? + for (int i = 0; i < MAX_CYLINDERS; i++) + free((void *)diveCylinderStore.cylinder[i].type.description); +} + void TankItem::setData(DivePlotDataModel *model, struct plot_info *plotInfo, struct dive *d) { free(pInfoEntry); |