From ecd3334a1c58fae08393362e399f637ad583d447 Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Sat, 4 Dec 2021 16:11:58 +0100 Subject: [PATCH] profile: when clearing the profile, also reset the profile data When hovering over the chart after the chart was cleared, there were artifacts owing to the stale profile data. Signed-off-by: Berthold Stoeger --- profile-widget/profilescene.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/profile-widget/profilescene.cpp b/profile-widget/profilescene.cpp index 9639581fe..e8f9d8162 100644 --- a/profile-widget/profilescene.cpp +++ b/profile-widget/profilescene.cpp @@ -197,6 +197,7 @@ void ProfileScene::clear() // the DiveEventItems qDeleteAll(eventItems); eventItems.clear(); + free_plot_info_data(&plotInfo); } static bool ppGraphsEnabled(const struct divecomputer *dc, bool simplified)