Free various struct membuffer in different functions

Signed-off-by: Stefan Fuchs <sfuchs@gmx.de>
This commit is contained in:
Stefan Fuchs 2018-01-22 20:29:55 +01:00 committed by Dirk Hohndel
parent d6c8edc2db
commit b5ce06c8b9
4 changed files with 5 additions and 1 deletions

View file

@ -184,6 +184,7 @@ void DiveEventItem::setupToolTipString(struct gasmix *lastgasmix)
tr("ΔN₂").toUtf8().constData(), icd_data.dN2 / 10.0,
icd ? ">" : "<", lrint(-icd_data.dHe / 5.0) / 10.0);
name += QString::fromUtf8(mb.buffer, mb.len);
free_buffer(&mb);
}
*lastgasmix = *mix;
} else if (value) {