--- src/gnome-utils/dialog-totd.c.orig 2017-05-27 09:07:55.212574269 +0000 +++ src/gnome-utils/dialog-totd.c 2017-05-26 21:20:32.913082100 +0000 @@ -220,15 +220,18 @@ /* Split cleaned up contents into multiple strings again */ g_strfreev (tip_list); + tip_list = NULL; if (contents) + { tip_list = g_strsplit(contents, "\n", 0); - /* Convert any escaped characters while counting the strings */ - for (tip_count = 0; tip_list[tip_count] != NULL; tip_count++) - { - new_str = g_strcompress(tip_list[tip_count]); - g_free(tip_list[tip_count]); - tip_list[tip_count] = new_str; + /* Convert any escaped characters while counting the strings */ + for (tip_count = 0; tip_list[tip_count] != NULL; tip_count++) + { + new_str = g_strcompress(tip_list[tip_count]); + g_free(tip_list[tip_count]); + tip_list[tip_count] = new_str; + } }