mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Free descriptions copied for TankItem
Signed-off-by: Anton Lundin <glance@acc.umu.se> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
4599172a19
commit
f14ef84c9a
2 changed files with 8 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue