[ I] sys-apps/lm_sensors (2.10.1): Hardware Monitoring user-space utilities [ I] xfce-extra/xfce4-sensors (0.10.0-r1): lm_sensors and hddtemp panel plugin I get about 140 MB of allocated RAM after 4 days of uptime and 3 secs refresh i think.
Using g_strdup_printf in this plugin is completely wrong, you duplicate string all the time and they are not freed. Please use GString instead. Like so: GString *labeltext = g_string_new (""); while (sensors) { g_string_append_printf (labeltext, "The temp is %d degrees", celcius); if (itemsToDisplay > 1) labeltext = g_string_append_c (labeltext, '\n'); } gtk_label_set_markup (GTK_LABEL(label), labeltext->str); g_string_free (labeltext, TRUE); I think that will make your live much easier and it removes all the leaks.
Is there some news about this? A debian user reported [0] that it could reproduce this leak (at least on 0.10.99.2). [0]: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=440858
(In reply to comment #2) Most of the memory leaks have been worked on at 0.10.99.2 and 0.10.99.3 and more work still has to be done; I need more details to not waste my precious time on figuring out, which setups the people have been using under which circumstances (3 secs update does not make any sense at all, btw.) to produce such an enormous amount of memory usage.