From: Ross Lagerwall Date: Wed, 30 Oct 2013 18:34:14 +0000 (+0200) Subject: gio: Clean up trashinfo file if trashing fails X-Git-Tag: 2.39.1~97 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e2fcb77cb04b4b86768d56d8fccfb36f1a5d9451;p=platform%2Fupstream%2Fglib.git gio: Clean up trashinfo file if trashing fails https://bugzilla.gnome.org/show_bug.cgi?id=687202 --- diff --git a/gio/glocalfile.c b/gio/glocalfile.c index e28a8be..b9bec8a 100644 --- a/gio/glocalfile.c +++ b/gio/glocalfile.c @@ -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);