mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-26 05:56:14 +01:00
Merge branch 'file-replace-contents-refcounting' into 'master'
gfile: Clarify refcount handling for g_file_replace_contents_bytes_async() See merge request GNOME/glib!1695
This commit is contained in:
commit
58d5b27ec5
@ -7580,7 +7580,6 @@ replace_contents_close_callback (GObject *obj,
|
||||
|
||||
/* Ignore errors here, we're only reading anyway */
|
||||
g_output_stream_close_finish (stream, close_res, NULL);
|
||||
g_object_unref (stream);
|
||||
|
||||
if (!data->failed)
|
||||
{
|
||||
@ -7662,6 +7661,7 @@ replace_contents_open_callback (GObject *obj,
|
||||
g_task_get_cancellable (data->task),
|
||||
replace_contents_write_callback,
|
||||
data);
|
||||
g_object_unref (stream); /* ownership is transferred to the write_async() call above */
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user