diff --git a/src/conky.c b/src/conky.c index a82c08a4..e670cf49 100644 --- a/src/conky.c +++ b/src/conky.c @@ -6944,6 +6944,7 @@ static void reload_config(void) static void clean_up(void) { + int i; timed_thread_destroy_registered_threads(); if (info.cpu_usage) { @@ -6972,6 +6973,12 @@ static void clean_up(void) XFreeGC(display, window.gc); free_fonts(); + for (i = 0; i < 10; i ++) { + if (template[i]) { + free(template[i]); + template[i] = NULL; + } + } } #endif /* X11 */