From b5ce06c8b958cdc51761c31697189db81baf4423 Mon Sep 17 00:00:00 2001 From: Stefan Fuchs Date: Mon, 22 Jan 2018 20:29:55 +0100 Subject: Free various struct membuffer in different functions Signed-off-by: Stefan Fuchs --- profile-widget/diveeventitem.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'profile-widget') diff --git a/profile-widget/diveeventitem.cpp b/profile-widget/diveeventitem.cpp index f47c5839c..8c8db6fd4 100644 --- a/profile-widget/diveeventitem.cpp +++ b/profile-widget/diveeventitem.cpp @@ -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) { -- cgit v1.2.3-70-g09d2