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
|
@ -1,3 +1,8 @@
|
||||||
|
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)
|
||||||
|
|
||||||
2009-03-19 Jens Granseuer <jensgr@gmx.net>
|
2009-03-19 Jens Granseuer <jensgr@gmx.net>
|
||||||
|
|
||||||
* gnome-theme-info.c: (gnome_theme_init): search the GTK+ icon theme
|
* gnome-theme-info.c: (gnome_theme_init): search the GTK+ icon theme
|
||||||
|
|
|
@ -24,6 +24,7 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
#include <unistd.h>
|
||||||
#include <glib.h>
|
#include <glib.h>
|
||||||
#include <glib/gstdio.h>
|
#include <glib/gstdio.h>
|
||||||
#include <fcntl.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