gtkselectioninputstream-x11: Do not add an extra reference to the returned stream
authorMarco Trevisan (Treviño) <mail@3v1n0.net>
Tue, 30 May 2023 15:50:56 +0000 (17:50 +0200)
committerMarco Trevisan (Treviño) <mail@3v1n0.net>
Tue, 30 May 2023 15:50:56 +0000 (17:50 +0200)
commit371e860184c95b9d6ec77369d5d6266072f32010
tree596ddeec9b0a22d45c05ba0c023a0767e09fdeff
parentbce1e0bfddd960a39d8041a19ab5085ca6f980be
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
gdk/x11/gdkselectioninputstream-x11.c