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

From: subversion at stage.maemo.org subversion at stage.maemo.org
Date: Thu Oct 11 11:19:34 EEST 2007
Author: jobi
Date: 2007-10-11 11:19:33 +0300 (Thu, 11 Oct 2007)
New Revision: 14414

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

2007-10-11  Johan Bilien  <johan.bilien at nokia.com>

	* src/hd-applications-menu.c (hd_applications_menu_activate_app):
	plugged the leak of a string vector



Modified: projects/haf/trunk/hildon-desktop/ChangeLog
===================================================================
--- projects/haf/trunk/hildon-desktop/ChangeLog	2007-10-11 08:06:47 UTC (rev 14413)
+++ projects/haf/trunk/hildon-desktop/ChangeLog	2007-10-11 08:19:33 UTC (rev 14414)
@@ -1,5 +1,10 @@
 2007-10-11  Johan Bilien  <johan.bilien at nokia.com>
 
+	* src/hd-applications-menu.c (hd_applications_menu_activate_app):
+	plugged the leak of a string vector
+
+2007-10-11  Johan Bilien  <johan.bilien at nokia.com>
+
 	* libhildonwm/hd-wm-window.c (hd_wm_win_info_get_window_name): Fixed
 	the leak of a string
 

Modified: projects/haf/trunk/hildon-desktop/src/hd-applications-menu.c
===================================================================
--- projects/haf/trunk/hildon-desktop/src/hd-applications-menu.c	2007-10-11 08:06:47 UTC (rev 14413)
+++ projects/haf/trunk/hildon-desktop/src/hd-applications-menu.c	2007-10-11 08:19:33 UTC (rev 14414)
@@ -501,7 +501,7 @@
     if (program)
     {
       gint argc;
-      gchar **argv;
+      gchar **argv = NULL;
       GPid child_pid;
       
       if (g_shell_parse_argv (program, &argc, &argv, &error))
@@ -527,6 +527,9 @@
     	      &child_pid,
     	      /* Return location for error */
     	      &error);
+
+        if (argv)
+          g_strfreev (argv);
       }
       
       if (error)


More information about the maemo-commits mailing list