Revert "[Python] Properly destroy CVC4 object (#3753)" (#4422)
authorAndrew V. Jones <andrew.jones@vector.com>
Fri, 19 Jun 2020 03:16:34 +0000 (04:16 +0100)
committerGitHub <noreply@github.com>
Fri, 19 Jun 2020 03:16:34 +0000 (20:16 -0700)
This reverts commit bfa008a7ce13eff2f59b022e8c2d5d71d77f9ecb.

src/cvc4.i

index f62611e8f61bc20ccf2f7cfd366de9370aa4c076..4fc0b092a3297e31a05a703ca172ad75b77ecae3 100644 (file)
@@ -52,9 +52,10 @@ std::set<JavaInputStreamAdapter*> CVC4::JavaInputStreamAdapter::s_adapters;
 
 #ifdef SWIGPYTHON
 %pythonappend CVC4::SmtEngine::SmtEngine %{
-  # Hold a reference to the ExprManager to make sure that Python keeps the
-  # ExprManager alive as long as the SmtEngine exists
-  self.em = em
+  self.thisown = 0
+%}
+%pythonappend CVC4::ExprManager::ExprManager %{
+  self.thisown = 0
 %}
 #endif /* SWIGPYTHON */