diff options
author | Ernestas Kulik <ernestask@gnome.org> | 2018-07-19 15:53:08 +0300 |
---|---|---|
committer | Ernestas Kulik <ernestask@gnome.org> | 2018-07-19 15:53:08 +0300 |
commit | 9a0ec5b1e094a33d28481603f28aa9c8ab3f31ab (patch) | |
tree | aa9a816d95c9bff8d3858d3b453e5bcbae974b9d /gdk | |
parent | 1030d9e5b12e880e55f6bd3184dc6f3646be2e19 (diff) | |
download | gtk+-9a0ec5b1e094a33d28481603f28aa9c8ab3f31ab.tar.gz |
gdk: contentdeserializer: Fix stream usage
file_uri_deserializer splices a memory stream, as opposed to
string_deserializer, which uses a converter and filter stream. This
commit fixes erroneous use of GMemoryOutputStream as
GFilterOutputStream.
Diffstat (limited to 'gdk')
-rw-r--r-- | gdk/gdkcontentdeserializer.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gdk/gdkcontentdeserializer.c b/gdk/gdkcontentdeserializer.c index b0df54cb12..bd301d57b1 100644 --- a/gdk/gdkcontentdeserializer.c +++ b/gdk/gdkcontentdeserializer.c @@ -716,8 +716,7 @@ file_uri_deserializer_finish (GObject *source, return; } - str = g_memory_output_stream_steal_data (G_MEMORY_OUTPUT_STREAM ( - g_filter_output_stream_get_base_stream (G_FILTER_OUTPUT_STREAM (stream)))); + str = g_memory_output_stream_steal_data (G_MEMORY_OUTPUT_STREAM (stream)); uris = g_uri_list_extract_uris (str); g_free (str); |