From e2fcb77cb04b4b86768d56d8fccfb36f1a5d9451 Mon Sep 17 00:00:00 2001 From: Ross Lagerwall Date: Wed, 30 Oct 2013 20:34:14 +0200 Subject: gio: Clean up trashinfo file if trashing fails https://bugzilla.gnome.org/show_bug.cgi?id=687202 --- gio/glocalfile.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'gio/glocalfile.c') diff --git a/gio/glocalfile.c b/gio/glocalfile.c index e28a8be85..b9bec8afd 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); -- cgit v1.2.3