mirror of
https://github.com/weechat/weechat.git
synced 2026-06-23 03:16:37 +02:00
Added Py_Finalise when Python plugin is unloaded
This commit is contained in:
@@ -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");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user