mirror of
https://github.com/Z3Prover/z3
synced 2025-08-04 10:20:23 +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
|
@Override
|
||||||
public void close()
|
public void close()
|
||||||
{
|
{
|
||||||
|
if (m_ctx == 0)
|
||||||
|
return;
|
||||||
|
|
||||||
m_RefQueue.forceClear();
|
m_RefQueue.forceClear();
|
||||||
|
|
||||||
m_boolSort = null;
|
m_boolSort = null;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue