about summary refs log tree commit diff stats
path: root/src/plugins
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2016-10-09 23:37:36 +0100
committerJames Booth <boothj5@gmail.com>2016-10-09 23:37:36 +0100
commitd485588a07f9d4a477a7615fee926fcfee44b29e (patch)
tree45a0b6ff884ffd15067c3e79afcdd092cefd8680 /src/plugins
parent40116db7c520764c19ff346ca24a9aa160132add (diff)
downloadprofani-tty-d485588a07f9d4a477a7615fee926fcfee44b29e.tar.gz
Remove hash table replace entry when adding plugin timed callbacks
fixes #869
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/callbacks.c2
1 files changed, 0 insertions, 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)
 {