[gnome-initial-setup] eulas: Fix a file leak
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-initial-setup] eulas: Fix a file leak
- Date: Thu, 12 Jul 2012 17:51:54 +0000 (UTC)
commit 460343fe549d7ac74a3b357274e49dd23a5c5296
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Thu Jul 12 08:16:24 2012 -0400
eulas: Fix a file leak
Not that we do any sort of memory management whatsoever, currently, but
let's reduce our memory pressure just a tiny bit.
gnome-initial-setup/gis-eula-pages.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/gnome-initial-setup/gis-eula-pages.c b/gnome-initial-setup/gis-eula-pages.c
index 9d87009..bb603fd 100644
--- a/gnome-initial-setup/gis-eula-pages.c
+++ b/gnome-initial-setup/gis-eula-pages.c
@@ -208,6 +208,7 @@ gis_prepare_eula_pages (SetupData *setup)
while ((info = g_file_enumerator_next_file (enumerator, NULL, &error)) != NULL) {
GFile *eula = g_file_get_child (eulas_dir, g_file_info_get_name (info));
build_eula_page (setup, eula);
+ g_object_unref (eula);
}
if (error != NULL)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]