summaryrefslogtreecommitdiff
path: root/src/plugins/scripts/tcl/weechat-tcl.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/scripts/tcl/weechat-tcl.c')
-rw-r--r--src/plugins/scripts/tcl/weechat-tcl.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/plugins/scripts/tcl/weechat-tcl.c b/src/plugins/scripts/tcl/weechat-tcl.c
index bfeba401b..bb2990c82 100644
--- a/src/plugins/scripts/tcl/weechat-tcl.c
+++ b/src/plugins/scripts/tcl/weechat-tcl.c
@@ -367,7 +367,7 @@ void
weechat_tcl_unload (struct t_plugin_script *script)
{
Tcl_Interp* interp;
- void *pointer;
+ int *rc;
if ((weechat_tcl_plugin->debug >= 1) || !tcl_quiet)
{
@@ -378,12 +378,12 @@ weechat_tcl_unload (struct t_plugin_script *script)
if (script->shutdown_func && script->shutdown_func[0])
{
- pointer = weechat_tcl_exec (script,
- WEECHAT_SCRIPT_EXEC_INT,
- script->shutdown_func,
- NULL, NULL);
- if (pointer)
- free (pointer);
+ rc = (int *)weechat_tcl_exec (script,
+ WEECHAT_SCRIPT_EXEC_INT,
+ script->shutdown_func,
+ NULL, NULL);
+ if (rc)
+ free (rc);
}
interp = (Tcl_Interp*)script->interpreter;