[gtk/wip/otte/clipboard: 13180/13183] x11: Don't consume too many references
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/otte/clipboard: 13180/13183] x11: Don't consume too many references
- Date: Fri, 18 Sep 2020 04:55:46 +0000 (UTC)
commit 5da179e4e4994ed5f4e5bb3253d890852b838148
Author: Benjamin Otte <otte redhat com>
Date: Thu Sep 17 17:37:18 2020 +0200
x11: Don't consume too many references
close_async() would consume a reference via invoke_close(), so take a
reference before calling it.
gdk/x11/gdkselectionoutputstream-x11.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gdk/x11/gdkselectionoutputstream-x11.c b/gdk/x11/gdkselectionoutputstream-x11.c
index d052982c59..43391934a9 100644
--- a/gdk/x11/gdkselectionoutputstream-x11.c
+++ b/gdk/x11/gdkselectionoutputstream-x11.c
@@ -556,7 +556,7 @@ gdk_x11_selection_output_stream_close_async (GOutputStream *stream,
g_task_set_source_tag (task, gdk_x11_selection_output_stream_close_async);
g_task_set_priority (task, io_priority);
- gdk_x11_selection_output_stream_invoke_close (stream);
+ gdk_x11_selection_output_stream_invoke_close (g_object_ref (stream));
g_task_return_boolean (task, TRUE);
g_object_unref (task);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]