diff --git a/src/pya/pya/pya.cc b/src/pya/pya/pya.cc index 377c7211f..8c617f71d 100644 --- a/src/pya/pya/pya.cc +++ b/src/pya/pya/pya.cc @@ -390,6 +390,8 @@ PythonInterpreter::~PythonInterpreter () m_stdout = PythonPtr (); m_stderr = PythonPtr (); + sp_interpreter = 0; + if (m_embedded) { Py_Finalize (); @@ -400,8 +402,6 @@ PythonInterpreter::~PythonInterpreter () } } - - sp_interpreter = 0; } char *