libegg r859 - trunk/libegg/smclient



Author: danw
Date: Tue Mar 25 18:56:31 2008
New Revision: 859
URL: http://svn.gnome.org/viewvc/libegg?rev=859&view=rev

Log:
2008-03-23  Jussi Judin  <jjudin+audacious iki fi>

	* eggdesktopfile.c (egg_desktop_file_new_from_key_file): do not
	leak the type.


Modified:
   trunk/libegg/smclient/ChangeLog
   trunk/libegg/smclient/eggdesktopfile.c

Modified: trunk/libegg/smclient/eggdesktopfile.c
==============================================================================
--- trunk/libegg/smclient/eggdesktopfile.c	(original)
+++ trunk/libegg/smclient/eggdesktopfile.c	Tue Mar 25 18:56:31 2008
@@ -202,6 +202,7 @@
       if (!exec)
 	{
 	  egg_desktop_file_free (desktop_file);
+	  g_free(type);
 	  return NULL;
 	}
 
@@ -234,6 +235,7 @@
       if (!url)
 	{
 	  egg_desktop_file_free (desktop_file);
+	  g_free(type);
 	  return NULL;
 	}
       g_free (url);
@@ -243,6 +245,8 @@
   else
     desktop_file->type = EGG_DESKTOP_FILE_TYPE_UNRECOGNIZED;
 
+  g_free(type);
+
   /* Check the Icon key */
   desktop_file->icon = g_key_file_get_string (key_file,
 					      EGG_DESKTOP_FILE_GROUP,



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