[gnome-desktop] gnome-languages: Fix a memory leak



commit 09d15b83586e9af6514225365ddf6d21c83d6053
Author: Rui Matos <tiagomatos gmail com>
Date:   Fri Jan 18 16:55:23 2013 +0100

    gnome-languages: Fix a memory leak
    
    https://bugzilla.gnome.org/show_bug.cgi?id=692413

 libgnome-desktop/gnome-languages.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/libgnome-desktop/gnome-languages.c b/libgnome-desktop/gnome-languages.c
index e5def9e..0b820ea 100644
--- a/libgnome-desktop/gnome-languages.c
+++ b/libgnome-desktop/gnome-languages.c
@@ -999,7 +999,6 @@ languages_variant_init (const char *variant)
                                    filename,
                                    error->message);
                         g_error_free (error);
-                        g_free (filename);
                 }
 
                 g_markup_parse_context_free (ctx);
@@ -1010,6 +1009,8 @@ languages_variant_init (const char *variant)
                            error->message);
                 g_error_free (error);
         }
+
+        g_free (filename);
 }
 
 static void



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