[gnome-desktop/gnome-3-8] gnome-xkb-info: Fix memory leak



commit d18494ebe5a97affdf34ec73586403b3edf68fa5
Author: Tim Lunn <tim feathertop org>
Date:   Fri May 31 10:41:14 2013 +1000

    gnome-xkb-info: Fix memory leak
    
    https://bugzilla.gnome.org/show_bug.cgi?id=701326

 libgnome-desktop/gnome-xkb-info.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/libgnome-desktop/gnome-xkb-info.c b/libgnome-desktop/gnome-xkb-info.c
index 7e2df28..cb6333c 100644
--- a/libgnome-desktop/gnome-xkb-info.c
+++ b/libgnome-desktop/gnome-xkb-info.c
@@ -1018,6 +1018,8 @@ gnome_xkb_info_get_layouts_for_country (GnomeXkbInfo *self,
   country = gnome_get_country_from_code (country_code, NULL);
 
   layouts_for_country = g_hash_table_lookup (priv->layouts_by_country, country);
+  g_free (country);
+
   if (!layouts_for_country)
     return NULL;
 


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