mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-10-31 04:31:15 -06:00 
			
		
		
		
	Add thread cleanup to avoid double destruction of shared XS data
This commit is contained in:
		
							parent
							
								
									3037b42b47
								
							
						
					
					
						commit
						8d171a297e
					
				
					 2 changed files with 19 additions and 5 deletions
				
			
		|  | @ -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; | ||||
|     }; | ||||
|      | ||||
|     @_ = (); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Alessandro Ranellucci
						Alessandro Ranellucci