Add thread cleanup to avoid double destruction of shared XS data

This commit is contained in:
Alessandro Ranellucci 2013-07-11 16:17:36 +02:00
parent 3037b42b47
commit 8d171a297e
2 changed files with 19 additions and 5 deletions

View file

@ -570,6 +570,7 @@ sub export_gcode {
});
},
);
Slic3r::thread_cleanup();
});
$self->statusbar->SetCancelCallback(sub {
$self->{export_thread}->kill('KILL')->join;
@ -744,6 +745,8 @@ sub make_thumbnail {
} else {
$self->on_thumbnail_made($obj_idx);
}
Slic3r::thread_cleanup() if $Slic3r::have_threads;
};
@_ = ();