close gtkrc files after use so we don't run out of file descriptors (bug
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) svn path=/trunk/; revision=9412
This commit is contained in:
parent
004051922d
commit
2fc7fe1247
2 changed files with 7 additions and 0 deletions
|
@ -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 @@ gtkrc_get_details (gchar *filename, GSList **engines, GSList **symbolic_colors)
|
|||
}
|
||||
|
||||
}
|
||||
close (file);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue