gtk+ r20327 - in trunk: . gtk
- From: tml svn gnome org
- To: svn-commits-list gnome org
- Subject: gtk+ r20327 - in trunk: . gtk
- Date: Sat, 7 Jun 2008 04:19:54 +0000 (UTC)
Author: tml
Date: Sat Jun 7 04:19:54 2008
New Revision: 20327
URL: http://svn.gnome.org/viewvc/gtk+?rev=20327&view=rev
Log:
2008-06-07 Tor Lillqvist <tml novell com>
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.
Modified:
trunk/ChangeLog
trunk/gtk/updateiconcache.c
Modified: trunk/gtk/updateiconcache.c
==============================================================================
--- trunk/gtk/updateiconcache.c (original)
+++ trunk/gtk/updateiconcache.c Sat Jun 7 04:19:54 2008
@@ -1475,7 +1475,6 @@
/* Empty table, just close and remove the file */
fclose (cache);
- close (fd);
g_unlink (tmp_cache_path);
exit (0);
}
@@ -1483,7 +1482,6 @@
/* 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]