mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-01 23:13:40 +02:00
Don't unref before last use
svn path=/trunk/; revision=6997
This commit is contained in:
@@ -5444,11 +5444,12 @@ g_file_replace_contents (GFile *file,
|
||||
}
|
||||
|
||||
ret = g_output_stream_close (G_OUTPUT_STREAM (out), cancellable, error);
|
||||
g_object_unref (out);
|
||||
|
||||
if (new_etag)
|
||||
*new_etag = g_file_output_stream_get_etag (out);
|
||||
|
||||
g_object_unref (out);
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user