diff --git a/profile-widget/profilewidget2.cpp b/profile-widget/profilewidget2.cpp index 89d1b2840..0d379d797 100644 --- a/profile-widget/profilewidget2.cpp +++ b/profile-widget/profilewidget2.cpp @@ -397,6 +397,8 @@ void ProfileWidget2::clear() handles.clear(); gases.clear(); empty = true; + d = nullptr; + dc = 0; } void ProfileWidget2::setProfileState(const dive *dIn, int dcIn)