diff options
author | Felix Riemann <friemann@svn.gnome.org> | 2008-08-10 10:55:57 +0000 |
---|---|---|
committer | Felix Riemann <friemann@src.gnome.org> | 2008-08-10 10:55:57 +0000 |
commit | 26f2a3b93c73e7dc83122b57fc838cc0da8f9c3d (patch) | |
tree | cfc4a6a269289f3127d373993fd991512de61ff6 /gio/gfile.c | |
parent | 15f92bfc3d05e9214d2cd59da88594c62f6cf2b3 (diff) |
Bug 547080 – g_file_copy leaks expected errors
2008-08-10 Felix Riemann <friemann@svn.gnome.org>
Bug 547080 – g_file_copy leaks expected errors
* gfile.c: (g_file_copy): Clear G_IO_ERROR_NOT_SUPPORTED errors
before trying the next fallback routine.
svn path=/trunk/; revision=7331
Diffstat (limited to 'gio/gfile.c')
-rw-r--r-- | gio/gfile.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gio/gfile.c b/gio/gfile.c index 52eb6df32..83643ea57 100644 --- a/gio/gfile.c +++ b/gio/gfile.c @@ -2447,6 +2447,8 @@ g_file_copy (GFile *source, g_propagate_error (error, my_error); return FALSE; } + else + g_clear_error (&my_error); } /* If the types are different, and the destination method failed @@ -2471,6 +2473,8 @@ g_file_copy (GFile *source, g_propagate_error (error, my_error); return FALSE; } + else + g_clear_error (&my_error); } } |