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
This commit is contained in:
Felix Riemann 2008-08-10 10:55:57 +00:00 committed by Felix Riemann
parent 15f92bfc3d
commit 26f2a3b93c
2 changed files with 11 additions and 0 deletions

View File

@ -1,3 +1,10 @@
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.
2008-08-09 Loïc Minier <lool@dooz.org> 2008-08-09 Loïc Minier <lool@dooz.org>
Bug 535124 umask 002 not being applied for new directories, new Bug 535124 umask 002 not being applied for new directories, new

View File

@ -2447,6 +2447,8 @@ g_file_copy (GFile *source,
g_propagate_error (error, my_error); g_propagate_error (error, my_error);
return FALSE; return FALSE;
} }
else
g_clear_error (&my_error);
} }
/* If the types are different, and the destination method failed /* 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); g_propagate_error (error, my_error);
return FALSE; return FALSE;
} }
else
g_clear_error (&my_error);
} }
} }