mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-09-27 17:52:58 +02:00
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=/branches/glib-2-16/; revision=7466
This commit is contained in:
@@ -1,3 +1,13 @@
|
||||
2008-09-11 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
Merge from trunk
|
||||
|
||||
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. Patch by
|
||||
Felix Riemann
|
||||
|
||||
2008-09-11 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
Merge from trunk
|
||||
|
@@ -2381,6 +2381,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
|
||||
@@ -2405,6 +2407,8 @@ g_file_copy (GFile *source,
|
||||
g_propagate_error (error, my_error);
|
||||
return FALSE;
|
||||
}
|
||||
else
|
||||
g_clear_error (&my_error);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user