mirror of
https://github.com/moparisthebest/hexchat
synced 2024-11-22 09:12:22 -05:00
fix possible crash
This commit is contained in:
parent
c4e96dd481
commit
efd21ce982
@ -1247,6 +1247,7 @@ error:
|
||||
if (plugin) {
|
||||
if (plugin->tstate)
|
||||
{
|
||||
Plugin_RemoveAllHooks((PyObject *)plugin);
|
||||
/* FIXME: Handle this? */
|
||||
if (plugin->tstate == PyInterpreterState_ThreadHead(plugin->tstate->interp))
|
||||
Py_EndInterpreter(plugin->tstate);
|
||||
|
Loading…
Reference in New Issue
Block a user