diff options
Diffstat (limited to 'core/divelist.c')
-rw-r--r-- | core/divelist.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/core/divelist.c b/core/divelist.c index 750eb42db..994170570 100644 --- a/core/divelist.c +++ b/core/divelist.c @@ -753,6 +753,9 @@ struct dive *unregister_dive(int idx) struct dive *dive = get_dive(idx); if (!dive) return NULL; /* this should never happen */ + /* When removing a dive from the global dive table, + * we also have to unregister its fulltext cache. */ + fulltext_unregister(dive); remove_from_dive_table(&dive_table, idx); if (dive->selected) amount_selected--; |