diff options
Diffstat (limited to 'src/plugins/scripts')
-rw-r--r-- | src/plugins/scripts/python/weechat-python-api.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/plugins/scripts/python/weechat-python-api.c b/src/plugins/scripts/python/weechat-python-api.c index 058b449a2..6a20339eb 100644 --- a/src/plugins/scripts/python/weechat-python-api.c +++ b/src/plugins/scripts/python/weechat-python-api.c @@ -4100,7 +4100,9 @@ weechat_python_api_hook_info_hashtable_cb (void *data, const char *info_name, "ssO", python_argv); if (python_argv[2]) - Py_XDECREF(python_argv[2]); + { + Py_XDECREF((PyObject *)python_argv[2]); + } return ret_hashtable; } |