mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-19 19:33:47 +00:00
Fixed memory leak
This commit is contained in:
@@ -172,6 +172,11 @@ sub parallelize {
|
||||
sub thread_cleanup {
|
||||
return if !$Slic3r::have_threads;
|
||||
|
||||
if (threads->tid == 0) {
|
||||
warn "Calling thread_cleanup() from main thread\n";
|
||||
return;
|
||||
}
|
||||
|
||||
# prevent destruction of shared objects
|
||||
no warnings 'redefine';
|
||||
*Slic3r::BridgeDetector::DESTROY = sub {};
|
||||
|
||||
Reference in New Issue
Block a user