[gnome-control-center/gnome-3-6] common: Fix a memory leak in gdm-languages



commit 1d065519650962c8c7347f1a302319b4aa28cf17
Author: Rui Matos <tiagomatos gmail com>
Date:   Fri Jan 25 15:13:56 2013 +0100

    common: Fix a memory leak in gdm-languages

 panels/common/gdm-languages.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/panels/common/gdm-languages.c b/panels/common/gdm-languages.c
index e6b3343..32adc44 100644
--- a/panels/common/gdm-languages.c
+++ b/panels/common/gdm-languages.c
@@ -1054,7 +1054,6 @@ languages_variant_init (const char *variant)
                                    filename,
                                    error->message);
                         g_error_free (error);
-                        g_free (filename);
                 }
 
                 g_markup_parse_context_free (ctx);
@@ -1065,6 +1064,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]