[maemo-commits] [maemo-commits] r14152 - in projects/haf/trunk/hildon-desktop: . libhildondesktop

From: subversion at stage.maemo.org subversion at stage.maemo.org
Date: Fri Sep 28 10:10:04 EEST 2007
Author: jobi
Date: 2007-09-28 10:10:00 +0300 (Fri, 28 Sep 2007)
New Revision: 14152

Modified:
   projects/haf/trunk/hildon-desktop/ChangeLog
   projects/haf/trunk/hildon-desktop/libhildondesktop/hildon-desktop-panel-expandable.c
Log:

2007-09-28 Johan Bilien  <johan.bilien at nokia.com>

	* libhildondesktop/hildon-desktop-panel-expandable.c
	(hildon_desktop_panel_expandable_cadd): fixed the leak of a GList



Modified: projects/haf/trunk/hildon-desktop/ChangeLog
===================================================================
--- projects/haf/trunk/hildon-desktop/ChangeLog	2007-09-28 07:07:21 UTC (rev 14151)
+++ projects/haf/trunk/hildon-desktop/ChangeLog	2007-09-28 07:10:00 UTC (rev 14152)
@@ -1,5 +1,10 @@
 2007-09-28 Johan Bilien  <johan.bilien at nokia.com>
 
+	* libhildondesktop/hildon-desktop-panel-expandable.c
+	(hildon_desktop_panel_expandable_cadd): fixed the leak of a GList
+
+2007-09-28 Johan Bilien  <johan.bilien at nokia.com>
+
 	* src/hd-panel-window.c (hd_panel_window_cadd): fixed leak of
 	a GList
 

Modified: projects/haf/trunk/hildon-desktop/libhildondesktop/hildon-desktop-panel-expandable.c
===================================================================
--- projects/haf/trunk/hildon-desktop/libhildondesktop/hildon-desktop-panel-expandable.c	2007-09-28 07:07:21 UTC (rev 14151)
+++ projects/haf/trunk/hildon-desktop/libhildondesktop/hildon-desktop-panel-expandable.c	2007-09-28 07:10:00 UTC (rev 14152)
@@ -474,11 +474,9 @@
 static void 
 hildon_desktop_panel_expandable_cadd (GtkContainer *container, GtkWidget *widget)
 {
-  GList *children;	
-  g_return_if_fail (HILDON_DESKTOP_IS_PANEL_EXPANDABLE (container));
+  g_return_if_fail (HILDON_DESKTOP_IS_PANEL_EXPANDABLE (container) &&
+                    GTK_IS_WIDGET (widget));
 
-  children = gtk_container_get_children (container);
-
   if (widget == HILDON_DESKTOP_PANEL_EXPANDABLE (container)->priv->arrow)
     return;	  
 


More information about the maemo-commits mailing list