mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-22 06:06:21 +00:00
Fix plugin command memleak
This commit is contained in:
@@ -92,13 +92,14 @@ plugins_run_command(const char * const input)
|
||||
gchar **args = parse_args(input, command->min_args, command->max_args, &result);
|
||||
if (result == FALSE) {
|
||||
ui_invalid_command_usage(command->usage, NULL);
|
||||
g_strfreev(split);
|
||||
return TRUE;
|
||||
} else {
|
||||
command->callback_func(command, args);
|
||||
g_strfreev(split);
|
||||
g_strfreev(args);
|
||||
return TRUE;
|
||||
}
|
||||
g_strfreev(args);
|
||||
}
|
||||
p_command = g_slist_next(p_command);
|
||||
}
|
||||
|
||||
@@ -92,6 +92,7 @@ plugins_init(void)
|
||||
curr = g_slist_next(curr);
|
||||
}
|
||||
}
|
||||
prefs_free_plugins(plugins_load);
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user