[gnome-session] [capplet] Plug leaks



commit 4c5ae995285ae866db4ad17dfc7b1cae0783db5b
Author: Vincent Untz <vuntz gnome org>
Date:   Wed Jun 24 01:19:00 2009 +0200

    [capplet] Plug leaks

 capplet/gsp-app.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/capplet/gsp-app.c b/capplet/gsp-app.c
index 7bb7ef2..fe85d80 100644
--- a/capplet/gsp-app.c
+++ b/capplet/gsp-app.c
@@ -342,6 +342,7 @@ _gsp_app_user_equal_system (GspApp  *app,
                 g_key_file_free (keyfile);
                 return FALSE;
         }
+        g_free (str);
 
         str = gsp_key_file_get_locale_string (keyfile,
                                               G_KEY_FILE_DESKTOP_KEY_COMMENT);
@@ -351,6 +352,7 @@ _gsp_app_user_equal_system (GspApp  *app,
                 g_key_file_free (keyfile);
                 return FALSE;
         }
+        g_free (str);
 
         str = gsp_key_file_get_string (keyfile,
                                        G_KEY_FILE_DESKTOP_KEY_EXEC);
@@ -360,6 +362,7 @@ _gsp_app_user_equal_system (GspApp  *app,
                 g_key_file_free (keyfile);
                 return FALSE;
         }
+        g_free (str);
 
         str = gsp_key_file_get_locale_string (keyfile,
                                               G_KEY_FILE_DESKTOP_KEY_ICON);
@@ -369,6 +372,7 @@ _gsp_app_user_equal_system (GspApp  *app,
                 g_key_file_free (keyfile);
                 return FALSE;
         }
+        g_free (str);
 
         g_key_file_free (keyfile);
 



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