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); } }