[glib] gio: fix small leak



commit daf7f56491517f048e119a12661999a103875c06
Author: Tim Lunn <tim feathertop org>
Date:   Wed May 1 10:39:26 2013 +1000

    gio: fix small leak
    
    https://bugzilla.gnome.org/show_bug.cgi?id=699361

 gio/gdesktopappinfo.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/gio/gdesktopappinfo.c b/gio/gdesktopappinfo.c
index faf9ac8..5fe3a9a 100644
--- a/gio/gdesktopappinfo.c
+++ b/gio/gdesktopappinfo.c
@@ -549,6 +549,7 @@ g_desktop_app_info_new (const char *desktop_id)
  found:
   g_free (basename);
   
+  g_free (appinfo->desktop_id);
   appinfo->desktop_id = g_strdup (desktop_id);
 
   if (g_desktop_app_info_get_is_hidden (appinfo))


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