diff --git a/lib/Biodiverse/GUI/Tabs/Spatial.pm b/lib/Biodiverse/GUI/Tabs/Spatial.pm index 3ae2b616e..bae4b916f 100644 --- a/lib/Biodiverse/GUI/Tabs/Spatial.pm +++ b/lib/Biodiverse/GUI/Tabs/Spatial.pm @@ -1178,6 +1178,7 @@ sub remove { eval {$self->{grid}->destroy()}; $self->{grid} = undef; # convoluted, but we're getting reference cycles + $self->{project}->delete_selection_callback('phylogeny', $self->{phylogeny_callback}); $self->SUPER::remove;