Skip to content

Commit

Permalink
call dispose on sorts #5900
Browse files Browse the repository at this point in the history
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
  • Loading branch information
NikolajBjorner committed Mar 16, 2022
1 parent cb9dcb7 commit cd5e114
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/api/dotnet/Context.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4927,6 +4927,10 @@ public void Dispose()
Fixedpoint_DRQ.Clear(this);
Optimize_DRQ.Clear(this);

if (m_boolSort != null) m_boolSort.Dispose();
if (m_intSort != null) m_intSort.Dispose();
if (m_realSort != null) m_realSort.Dispose();
if (m_stringSort != null) m_stringSort.Dispose();
m_boolSort = null;
m_intSort = null;
m_realSort = null;
Expand Down

0 comments on commit cd5e114

Please sign in to comment.