gnome-power-manager r2680 - in trunk: . applets/brightness



Author: rhughes
Date: Tue Feb 19 11:45:15 2008
New Revision: 2680
URL: http://svn.gnome.org/viewvc/gnome-power-manager?rev=2680&view=rev

Log:
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)


Modified:
   trunk/ChangeLog
   trunk/applets/brightness/brightness-applet.c

Modified: trunk/applets/brightness/brightness-applet.c
==============================================================================
--- trunk/applets/brightness/brightness-applet.c	(original)
+++ trunk/applets/brightness/brightness-applet.c	Tue Feb 19 11:45:15 2008
@@ -305,6 +305,8 @@
 			 applet->icon_width, applet->icon_height,
 			 GDK_RGB_DITHER_NONE, 0, 0);
 
+	g_object_unref (gc);
+
 	return TRUE;
 }
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]