fix crash due to GIL

This commit is contained in:
wmayer 2017-02-18 08:18:51 +01:00
parent 4d21adf476
commit bc525a41e6

View File

@ -30,6 +30,7 @@
#include "PyObjectBase.h"
#include "Console.h"
#include "Interpreter.h"
using namespace Base;
@ -50,6 +51,7 @@ PyObjectBase::PyObjectBase(void* p,PyTypeObject *T)
/// destructor
PyObjectBase::~PyObjectBase()
{
PyGILStateLocker lock;
#ifdef FC_LOGPYOBJECTS
Base::Console().Log("PyO-: %s (%p)\n",this->ob_type->tp_name, this);
#endif