Changeset 3633
- Timestamp:
- 03/20/07 07:16:55 (2 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/Plug-Ins/Python Support/JVPythonChatPlugin.m
r3499 r3633 264 264 if( ! _scriptModule ) return nil; 265 265 266 PyGILState_STATE state; 267 266 268 PyObject *dict = PyModule_GetDict( _scriptModule ); 267 269 if( ! dict ) return nil; … … 282 284 } 283 285 286 state = PyGILState_Ensure(); 284 287 PyObject *ret = PyObject_CallObject( func, args ); 285 288 … … 289 292 Py_XDECREF( ret ); 290 293 Py_DECREF( args ); 291 294 292 295 [self reportErrorIfNeededInFunction:functionName]; 296 297 PyGILState_Release(state); 293 298 294 299 return realRet;
