1
0
mirror of https://github.com/moparisthebest/hexchat synced 2024-11-26 03:02:17 -05:00

fix possible crash

This commit is contained in:
TingPing 2013-05-04 00:00:48 -03:00
parent c4e96dd481
commit efd21ce982

View File

@ -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);