projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f02b739
)
gtkselectioninputstream-x11: Do not add unreffed bytes to the chunks queue
author
Marco Trevisan (Treviño)
<mail@3v1n0.net>
Tue, 30 May 2023 15:43:57 +0000
(17:43 +0200)
committer
Matthias Clasen
<mclasen@redhat.com>
Mon, 5 Jun 2023 12:01:30 +0000
(08:01 -0400)
This should never happen, but we may exit the loop because of count value
with an unreffed bytes pointer being added back to the chunks queue.
gdk/x11/gdkselectioninputstream-x11.c
patch
|
blob
|
history
diff --git
a/gdk/x11/gdkselectioninputstream-x11.c
b/gdk/x11/gdkselectioninputstream-x11.c
index 7ea92ef368855bd5adc26f1f15e99e2edfc4bf2c..0f4ce37d4c3c03452fc4d9d5baf760f828e7b256 100644
(file)
--- a/
gdk/x11/gdkselectioninputstream-x11.c
+++ b/
gdk/x11/gdkselectioninputstream-x11.c
@@
-107,7
+107,7
@@
gdk_x11_selection_input_stream_fill_buffer (GdkX11SelectionInputStream *stream,
memcpy (buffer, g_bytes_get_data (bytes, NULL), size);
}
- g_bytes_unref (
bytes
);
+ g_bytes_unref (
g_steal_pointer (&bytes)
);
result += size;
if (buffer)
buffer += size;