GFile: Clean up file_copy_fallback to fix SEGV with btrfs
authorColin Walters <walters@verbum.org>
Fri, 25 Jan 2013 15:40:45 +0000 (10:40 -0500)
committerColin Walters <walters@verbum.org>
Sun, 27 Jan 2013 16:04:48 +0000 (11:04 -0500)
commit166766a89fcd173dcd6ffda11f902029928f7f28
tree3ebb1dd76a26d436084fdda6313e97f1f58573bc
parent1818e0a2f80fc578d80b8dbc73163bf81b7d792b
GFile: Clean up file_copy_fallback to fix SEGV with btrfs

Ok, this function was just an awful mess before.  Now the problem
domain is not trivial, and I won't claim this new code is *beautiful*,
but it should fix the bug at hand, and be somewhat less prone to
failure for the next person who tries to modify it.  There's only one
unref call for each object now.

https://bugzilla.gnome.org/show_bug.cgi?id=692408
gio/gfile.c