From 3922cb5abcd451238047713829456e50f94dade2 Mon Sep 17 00:00:00 2001 From: Thomas Grill Date: Fri, 6 Jul 2007 21:44:56 +0000 Subject: adapting to new flext lockfree structures much better detach method handling (one thread for all object instances) use PyGILState_\*() functionality (enabled with PY_USE_GIL) ooops, fixing typo fixing numpy initialization quirks pyext._init is now called after __init__ enabled use of inofficial PD functionality for search and help path access (#define PY_USE_INOFFICIAL) added sketch for new pye (Python expression) object buffer protocol adapted for Python 2.5 svn path=/trunk/; revision=7903 --- externals/grill/py/source/py.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'externals/grill/py/source/py.cpp') diff --git a/externals/grill/py/source/py.cpp b/externals/grill/py/source/py.cpp index f19ec36a..c7b526a0 100644 --- a/externals/grill/py/source/py.cpp +++ b/externals/grill/py/source/py.cpp @@ -188,12 +188,12 @@ pyobj::pyobj(int argc,const t_atom *argv) pyobj::~pyobj() { + ThrState state = PyLockSys(); if(objects) { for(int i = 0; i < CntIn()-1; ++i) Py_DECREF(objects[i]); delete[] objects; } - ThrState state = PyLockSys(); Unregister(GetRegistry(REGNAME)); Report(); PyUnlock(state); -- cgit v1.2.1