gio: Don't leak the temp file when g_file_replace() fails or is cancelled
authorDan Winship <danw@gnome.org>
Wed, 7 Nov 2012 15:36:05 +0000 (10:36 -0500)
committerDan Winship <danw@gnome.org>
Mon, 10 Dec 2012 16:04:05 +0000 (17:04 +0100)
commitafdb2abb13896a3d5caecabd2f7158e8047f9956
tree26b8c6a24c78a3961e713e5de1b2233a10fcf9b3
parente218b96a6bf687842834fbfe133e77495049f251
gio: Don't leak the temp file when g_file_replace() fails or is cancelled

If the temp file still exists at the end of the close operation,
unlink it.

https://bugzilla.gnome.org/show_bug.cgi?id=629301
gio/glocalfileoutputstream.c
gio/tests/file.c