[maemo-commits] [maemo-commits] r11312 - in projects/haf/trunk/hildon-desktop: . src

From: subversion at stage.maemo.org subversion at stage.maemo.org
Date: Wed Apr 25 17:16:06 EEST 2007
Author: jobi
Date: 2007-04-25 17:16:05 +0300 (Wed, 25 Apr 2007)
New Revision: 11312

Modified:
   projects/haf/trunk/hildon-desktop/ChangeLog
   projects/haf/trunk/hildon-desktop/src/hd-desktop.c
Log:

2007-04-25  Johan Bilien  <johan.bilien at nokia.com>

	* src/hd-desktop.c:
	- Fixed the leak of the configuration file buffer
	- Fixed the leak of the array returned by g_key_file_get_groups



Modified: projects/haf/trunk/hildon-desktop/ChangeLog
===================================================================
--- projects/haf/trunk/hildon-desktop/ChangeLog	2007-04-25 14:02:48 UTC (rev 11311)
+++ projects/haf/trunk/hildon-desktop/ChangeLog	2007-04-25 14:16:05 UTC (rev 11312)
@@ -1,3 +1,9 @@
+2007-04-25  Johan Bilien  <johan.bilien at nokia.com>
+
+	* src/hd-desktop.c:
+	- Fixed the leak of the configuration file buffer
+	- Fixed the leak of the array returned by g_key_file_get_groups
+
 2007-04 25  Moises Martinez  <moises.martinez at nokia.com>
 
 	* libhildondesktop/hildon-desktop-popup-menu.ch:

Modified: projects/haf/trunk/hildon-desktop/src/hd-desktop.c
===================================================================
--- projects/haf/trunk/hildon-desktop/src/hd-desktop.c	2007-04-25 14:02:48 UTC (rev 11311)
+++ projects/haf/trunk/hildon-desktop/src/hd-desktop.c	2007-04-25 14:16:05 UTC (rev 11312)
@@ -308,6 +308,7 @@
     return;
   }
 
+  g_free (buffer);
   g_free (config_file_path);
   g_key_file_free (keyfile);
 }
@@ -345,6 +346,7 @@
     plugin_list = g_list_append (plugin_list, groups[i]);
   }
 
+  g_free (groups);
   g_key_file_free (keyfile);
 
   return plugin_list;


More information about the maemo-commits mailing list