GNOME Bugzilla – Bug 514590
brightness applet is bloaty
Last modified: 2008-02-19 11:46:20 UTC
res-base Wins GCs Fnts Pxms Misc Pxm mem Other Total PID Identifier 2a00000 10 495 0 467 37 1017K 12K 1029K 3887 gnome-brightness-applet It's using roughly five times the X memory of the panel. 4 times the X memory of metacity. And more GCs and pixmaps than anything except firefox. Something must be wrong here. gnome-power-manager-2.21.1-2.fc9.x86_64
This appears to be because it leaks references like mad; this can be seen pretty easily by running xrestop and opening/closing the slider.
Created attachment 105518 [details] [review] the fix
Good man. Please can you commit to trunk. Thanks.
2008-02-19 Richard Hughes <richard@hughsie.com> * applets/brightness/brightness-applet.c: (gpm_applet_draw_cb): The brightness applet leaks memory, and appears to be because it leaks references like mad; this can be seen pretty easily by running xrestop and opening/closing the slider. Free the gc to avoid the leak, fixes #514590 (Matthias Clasen)