[!] fixed: previous revision

git-svn-id: https://pykd.svn.codeplex.com/svn@59902 9b283d60-5439-405e-af05-b73fd8c4d996
This commit is contained in:
SND\kernelnet_cp 2011-01-08 13:43:40 +00:00
parent af3e45bae6
commit 0e12bf9fab

View File

@ -241,7 +241,9 @@ HRESULT
CALLBACK
py( PDEBUG_CLIENT4 client, PCSTR args)
{
PyThreadState *interpreter = Py_NewInterpreter();
PyThreadState *globalInterpreter = PyThreadState_Swap( NULL );
PyThreadState *localInterpreter = Py_NewInterpreter();
try {
@ -351,7 +353,8 @@ py( PDEBUG_CLIENT4 client, PCSTR args)
{
}
Py_EndInterpreter( interpreter );
Py_EndInterpreter( localInterpreter );
PyThreadState_Swap( globalInterpreter );
return S_OK;
}