diff --git a/ChangeLog b/ChangeLog index 6d9ab218ac..fd381d3e4b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2008-06-07 Tor Lillqvist + + Bug 536990 - updateiconcache.c: 'close ()' is redundant + + * gtk/updateiconcache.c (build_cache): Drop redundant close() + calls. fclose() on a fdopen()ed strema closes the underlying file + descriptor. + 2008-06-06 Matthias Clasen Bug 536757 – regression: openoffice.org menus are placed at wrong diff --git a/gtk/updateiconcache.c b/gtk/updateiconcache.c index a9381ce741..58aaf5d87f 100644 --- a/gtk/updateiconcache.c +++ b/gtk/updateiconcache.c @@ -1475,7 +1475,6 @@ build_cache (const gchar *path) /* Empty table, just close and remove the file */ fclose (cache); - close (fd); g_unlink (tmp_cache_path); exit (0); } @@ -1483,7 +1482,6 @@ build_cache (const gchar *path) /* FIXME: Handle failure */ retval = write_file (cache, files, directories); fclose (cache); - close (fd); g_list_foreach (directories, (GFunc)g_free, NULL); g_list_free (directories);