mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-10-30 20:21:12 -06:00 
			
		
		
		
	Fixed memory leak
This commit is contained in:
		
							parent
							
								
									2811af349a
								
							
						
					
					
						commit
						3685f5031d
					
				
					 2 changed files with 5 additions and 1 deletions
				
			
		|  | @ -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 {}; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Alessandro Ranellucci
						Alessandro Ranellucci