Deregister the update callback on end of the application.

This fixes a crash on exit.
This commit is contained in:
bubnikv 2018-08-05 23:36:25 +02:00
parent c13cd284e4
commit ea163edc41
5 changed files with 9 additions and 20 deletions

View file

@ -107,6 +107,7 @@ sub new {
wxTheApp->{app_config}->save;
$self->{plater}->{print} = undef if($self->{plater});
Slic3r::GUI::_3DScene::remove_all_canvases();
Slic3r::GUI::deregister_on_request_update_callback();
# propagate event
$event->Skip;
});