gio: Clean up trashinfo file if trashing fails
authorRoss Lagerwall <rosslagerwall@gmail.com>
Wed, 30 Oct 2013 18:34:14 +0000 (20:34 +0200)
committerRoss Lagerwall <rosslagerwall@gmail.com>
Thu, 31 Oct 2013 04:31:43 +0000 (06:31 +0200)
https://bugzilla.gnome.org/show_bug.cgi?id=687202

gio/glocalfile.c

index e28a8be..b9bec8a 100644 (file)
@@ -2083,6 +2083,8 @@ g_local_file_trash (GFile         *file,
     {
       int errsv = errno;
 
+      g_unlink (infofile);
+
       g_free (topdir);
       g_free (trashname);
       g_free (infofile);