When closing a dive, delete all the dive sites

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2015-02-13 23:11:36 -08:00
parent 3ea2e15bd2
commit ca72ab5749

View file

@ -354,6 +354,8 @@ void MainWindow::closeCurrentFile()
clear_git_id(); clear_git_id();
while (dive_table.nr) while (dive_table.nr)
delete_single_dive(0); delete_single_dive(0);
while (dive_site_table.nr)
delete_dive_site(get_dive_site(0)->uuid);
free((void *)existing_filename); free((void *)existing_filename);
existing_filename = NULL; existing_filename = NULL;