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)