mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-27 06:00:22 +00:00
gtkselectioninputstream-x11: Do not add an extra reference to the returned stream
We create a new stream during gdk_x11_selection_input_stream_new_async() then such stream is referenced when passed to the task via g_task_return_pointer(), so there's no need to reference it again before returning it, or we'd end up leaking. Fixes: https://gitlab.gnome.org/GNOME/gtk/-/issues/4892
This commit is contained in:
parent
bce1e0bfdd
commit
371e860184
@ -577,7 +577,6 @@ gdk_x11_selection_input_stream_new_finish (GAsyncResult *result,
|
||||
*type = priv->type;
|
||||
if (format)
|
||||
*format = priv->format;
|
||||
g_object_ref (stream);
|
||||
}
|
||||
|
||||
return G_INPUT_STREAM (stream);
|
||||
|
Loading…
Reference in New Issue
Block a user