From 2fc7fe12476aae2bd22f4bc6afb7816fe8ac729e Mon Sep 17 00:00:00 2001 From: Jens Granseuer Date: Tue, 14 Apr 2009 21:58:01 +0000 Subject: [PATCH] close gtkrc files after use so we don't run out of file descriptors (bug 2009-04-14 Jens Granseuer * gtkrc-utils.c: (gtkrc_get_details): close gtkrc files after use so we don't run out of file descriptors (bug #578835) svn path=/trunk/; revision=9412 --- capplets/common/ChangeLog | 5 +++++ capplets/common/gtkrc-utils.c | 2 ++ 2 files changed, 7 insertions(+) diff --git a/capplets/common/ChangeLog b/capplets/common/ChangeLog index 7946d8748..e7b69ae8a 100644 --- a/capplets/common/ChangeLog +++ b/capplets/common/ChangeLog @@ -1,3 +1,8 @@ +2009-04-14 Jens Granseuer + + * gtkrc-utils.c: (gtkrc_get_details): close gtkrc files after use so + we don't run out of file descriptors (bug #578835) + 2009-03-19 Jens Granseuer * gnome-theme-info.c: (gnome_theme_init): search the GTK+ icon theme diff --git a/capplets/common/gtkrc-utils.c b/capplets/common/gtkrc-utils.c index 525c52f4b..72f03228e 100644 --- a/capplets/common/gtkrc-utils.c +++ b/capplets/common/gtkrc-utils.c @@ -24,6 +24,7 @@ #endif #include +#include #include #include #include @@ -156,6 +157,7 @@ gtkrc_get_details (gchar *filename, GSList **engines, GSList **symbolic_colors) } } + close (file); } }