mirror of
https://github.com/Z3Prover/z3
synced 2025-04-15 13:28:47 +00:00
Minor Java API fix.
This commit is contained in:
parent
2d3c12716a
commit
a71a333722
|
@ -3809,7 +3809,7 @@ public class Context extends IDisposable
|
||||||
m_intSort = null;
|
m_intSort = null;
|
||||||
m_realSort = null;
|
m_realSort = null;
|
||||||
|
|
||||||
if (m_refCount.get() == 0) {
|
if (m_refCount.get() == 0 && m_ctx != 0) {
|
||||||
try {
|
try {
|
||||||
Native.delContext(m_ctx);
|
Native.delContext(m_ctx);
|
||||||
} catch (Z3Exception e) {
|
} catch (Z3Exception e) {
|
||||||
|
|
Loading…
Reference in a new issue