From 7ae6508c279d590350778be4a8453e786b8e7b37 Mon Sep 17 00:00:00 2001 From: Nick Wogan Date: Fri, 3 May 2024 07:21:27 -0700 Subject: [PATCH] forgot dealloc --- equilibrate/cython/_equilibrate.pyx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/equilibrate/cython/_equilibrate.pyx b/equilibrate/cython/_equilibrate.pyx index 4a1044b..60df8af 100644 --- a/equilibrate/cython/_equilibrate.pyx +++ b/equilibrate/cython/_equilibrate.pyx @@ -68,6 +68,9 @@ cdef class ChemEquiAnalysis: if len(err.strip()) > 0: raise EquilibrateException(err.decode("utf-8").strip()) + def __dealloc__(self): + cea_pxd.deallocate_chemequianalysis(&self._ptr) + def solve(self, double P, double T, molfracs_atoms = None, molfracs_species = None): """Computes chemical equilibrium given input atom or species mole fractions. If successful, then the equilibrium composition will be stored in a number