fix possible crash
This commit is contained in:
parent
c4e96dd481
commit
efd21ce982
@ -1247,6 +1247,7 @@ error:
|
|||||||
if (plugin) {
|
if (plugin) {
|
||||||
if (plugin->tstate)
|
if (plugin->tstate)
|
||||||
{
|
{
|
||||||
|
Plugin_RemoveAllHooks((PyObject *)plugin);
|
||||||
/* FIXME: Handle this? */
|
/* FIXME: Handle this? */
|
||||||
if (plugin->tstate == PyInterpreterState_ThreadHead(plugin->tstate->interp))
|
if (plugin->tstate == PyInterpreterState_ThreadHead(plugin->tstate->interp))
|
||||||
Py_EndInterpreter(plugin->tstate);
|
Py_EndInterpreter(plugin->tstate);
|
||||||
|
Loading…
Reference in New Issue
Block a user