Skip to content

Commit

Permalink
GUI Spatial tab: Clean up tree callback when closed
Browse files Browse the repository at this point in the history
Fixes #802
  • Loading branch information
shawnlaffan committed Oct 29, 2021
1 parent 44a9cd8 commit 6c8db26
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/Biodiverse/GUI/Tabs/Spatial.pm
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 6c8db26

Please sign in to comment.