diff options
Diffstat (limited to 'divelist.c')
-rw-r--r-- | divelist.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/divelist.c b/divelist.c index 18ff99135..85a70f9fd 100644 --- a/divelist.c +++ b/divelist.c @@ -1106,6 +1106,9 @@ void clear_dive_file_data() while (dive_site_table.nr) delete_dive_site(get_dive_site(0)->uuid); + clear_dive(&displayed_dive); + clear_dive_site(&displayed_dive_site); + free((void *)existing_filename); existing_filename = NULL; |