1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2025-01-30 10:38:36 +00:00

Fix "Conky usually segfaults on config file changes" (sf.net #3100221)

Someone needs to learn the difference between passing by value and passing by reference.

Bug reported by Kevin Lyles.
This commit is contained in:
Pavel Labath 2010-11-14 14:34:39 +01:00
parent a18f5e2808
commit 17d4658242

View File

@ -2497,7 +2497,7 @@ void clean_up_x11(void)
} }
#endif #endif
void free_specials(special_t *current) { void free_specials(special_t *&current) {
if (current) { if (current) {
free_specials(current->next); free_specials(current->next);
if(current->type == GRAPH) if(current->type == GRAPH)