Fixed memory leak

This commit is contained in:
Alessandro Ranellucci committed 2015-11-02 01:36:35 +01:00
1 parent b309c61de3
commit 05812a0a60
2 files changed
+5 -1

No files matched your search

+5
View File
@@ -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 {};