From d485588a07f9d4a477a7615fee926fcfee44b29e Mon Sep 17 00:00:00 2001 From: James Booth Date: Sun, 9 Oct 2016 23:37:36 +0100 Subject: [PATCH] Remove hash table replace entry when adding plugin timed callbacks fixes #869 --- src/plugins/callbacks.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/plugins/callbacks.c b/src/plugins/callbacks.c index 364cb669..1240e2c8 100644 --- a/src/plugins/callbacks.c +++ b/src/plugins/callbacks.c @@ -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) {