mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-18 10:26:22 +00:00
Remove hash table replace entry when adding plugin timed callbacks
fixes #869
This commit is contained in:
@@ -200,7 +200,6 @@ callbacks_add_timed(const char *const plugin_name, PluginTimedFunction *timed_fu
|
||||
GList *timed_function_list = g_hash_table_lookup(p_timed_functions, plugin_name);
|
||||
if (timed_function_list) {
|
||||
timed_function_list = g_list_append(timed_function_list, timed_function);
|
||||
g_hash_table_replace(p_timed_functions, strdup(plugin_name), timed_function_list);
|
||||
} else {
|
||||
timed_function_list = g_list_append(timed_function_list, timed_function);
|
||||
g_hash_table_insert(p_timed_functions, strdup(plugin_name), timed_function_list);
|
||||
@@ -230,7 +229,6 @@ callbacks_remove_win(const char *const plugin_name, const char *const tag)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
callbacks_add_window_handler(const char *const plugin_name, const char *tag, PluginWindowCallback *window_callback)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user