diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2009-05-08 10:30:36 +0200 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2009-05-08 10:30:36 +0200 |
commit | d3976c2afe608d70724e2d3d59093b6fbb3d230a (patch) | |
tree | 09a86fcd633c631f1c248b9a91710f4f68554721 /src/plugins/scripts/python/weechat-python.c | |
parent | 85ecabdd9f29f15ce2c855e02639e31a014859a3 (diff) | |
download | weechat-d3976c2afe608d70724e2d3d59093b6fbb3d230a.zip |
Fix crash in python plugin after parse file error
Diffstat (limited to 'src/plugins/scripts/python/weechat-python.c')
-rw-r--r-- | src/plugins/scripts/python/weechat-python.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/plugins/scripts/python/weechat-python.c b/src/plugins/scripts/python/weechat-python.c index 46cfbbc80..2e8056425 100644 --- a/src/plugins/scripts/python/weechat-python.c +++ b/src/plugins/scripts/python/weechat-python.c @@ -472,8 +472,6 @@ weechat_python_load (const char *filename) if (PyErr_Occurred ()) PyErr_Print (); - Py_EndInterpreter (python_current_interpreter); - /* PyEval_ReleaseLock (); */ /* if script was registered, removing from list */ if (python_current_script != NULL) @@ -482,6 +480,10 @@ weechat_python_load (const char *filename) &python_scripts, &last_python_script, python_current_script); } + + Py_EndInterpreter (python_current_interpreter); + /* PyEval_ReleaseLock (); */ + return 0; } |