gio: Clean up trashinfo file if trashing fails

https://bugzilla.gnome.org/show_bug.cgi?id=687202
This commit is contained in:
Ross Lagerwall 2013-10-30 20:34:14 +02:00
parent e94df7cfc2
commit e2fcb77cb0

View 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);