1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-23 19:36:37 +02:00

Added Py_Finalise when Python plugin is unloaded

This commit is contained in:
Sebastien Helleu
2005-10-16 17:38:50 +00:00
parent 38e2003a17
commit 2ca5b4f651
2 changed files with 14 additions and 4 deletions
+7 -2
View File
@@ -854,11 +854,16 @@ weechat_plugin_end (t_weechat_plugin *plugin)
weechat_python_unload_all (plugin);
/* free Python interpreter */
/*Py_Finalize ();
if (python_mainThreadState != NULL)
{
PyThreadState_Swap (python_mainThreadState);
python_mainThreadState = NULL;
}
Py_Finalize ();
if (Py_IsInitialized () != 0)
python_plugin->printf_server (python_plugin,
"Python error: unable to free interpreter");
python_plugin->printf_server (python_plugin,
"Python plugin ended");*/
"Python plugin ended");
}