mirror of
				https://github.com/Z3Prover/z3
				synced 2025-11-04 13:29:11 +00:00 
			
		
		
		
	Made Context.close idempotent (as recommended)
This commit is contained in:
		
							parent
							
								
									727643c54e
								
							
						
					
					
						commit
						a1528aaadd
					
				
					 1 changed files with 3 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -4329,6 +4329,9 @@ public class Context implements AutoCloseable {
 | 
			
		|||
    @Override
 | 
			
		||||
    public void close()
 | 
			
		||||
    {
 | 
			
		||||
        if (m_ctx == 0)
 | 
			
		||||
            return;
 | 
			
		||||
 | 
			
		||||
        m_RefQueue.forceClear();
 | 
			
		||||
 | 
			
		||||
        m_boolSort = null;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue