3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-26 10:35:33 +00:00

Bugfix for Java memory leaks.

Relates to #205 #245
This commit is contained in:
Christoph M. Wintersteiger 2015-10-14 21:19:59 +01:00
parent 58d3329190
commit 2d3c12716a
2 changed files with 18 additions and 20 deletions

View file

@ -53,7 +53,8 @@ public class Z3Object extends IDisposable
if (m_ctx != null)
{
m_ctx.m_refCount.decrementAndGet();
if (m_ctx.m_refCount.decrementAndGet() == 0)
m_ctx.dispose();
m_ctx = null;
}
}