gnome-control-center r9412 - trunk/capplets/common



Author: jensg
Date: Tue Apr 14 21:58:01 2009
New Revision: 9412
URL: http://svn.gnome.org/viewvc/gnome-control-center?rev=9412&view=rev

Log:
2009-04-14  Jens Granseuer  <jensgr gmx net>

	* gtkrc-utils.c: (gtkrc_get_details): close gtkrc files after use so
	we don't run out of file descriptors (bug #578835)


Modified:
   trunk/capplets/common/ChangeLog
   trunk/capplets/common/gtkrc-utils.c

Modified: trunk/capplets/common/gtkrc-utils.c
==============================================================================
--- trunk/capplets/common/gtkrc-utils.c	(original)
+++ trunk/capplets/common/gtkrc-utils.c	Tue Apr 14 21:58:01 2009
@@ -24,6 +24,7 @@
 #endif
 
 #include <string.h>
+#include <unistd.h>
 #include <glib.h>
 #include <glib/gstdio.h>
 #include <fcntl.h>
@@ -156,6 +157,7 @@
 				}
 
 			}
+			close (file);
 		}
 	}
 



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