[gnome-initial-setup] Fix the case where the EULAs dir doesn't exist



commit deb3178280b3fec494e16319bbb3c14c09953188
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Thu May 31 16:36:24 2012 -0400

    Fix the case where the EULAs dir doesn't exist

 gnome-initial-setup/gdm-initial-setup.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gnome-initial-setup/gdm-initial-setup.c b/gnome-initial-setup/gdm-initial-setup.c
index e129cc8..ec69337 100644
--- a/gnome-initial-setup/gdm-initial-setup.c
+++ b/gnome-initial-setup/gdm-initial-setup.c
@@ -226,7 +226,7 @@ prepare_eula_pages (SetupData *setup)
         gchar *eulas_dir_path;
         GFile *eulas_dir;
         GError *error = NULL;
-        GFileEnumerator *enumerator;
+        GFileEnumerator *enumerator = NULL;
         GFileInfo *info;
 
         eulas_dir_path = g_build_filename (UIDIR, "eulas", NULL);
@@ -261,7 +261,7 @@ prepare_eula_pages (SetupData *setup)
  out:
         g_clear_error (&error);
         g_object_unref (eulas_dir);
-        g_object_unref (enumerator);
+        g_clear_object (&enumerator);
 }
 
 /* Network page {{{1 */



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