From 1ce960c85b3fb88778045c0f6c691eadd1c9b307 Mon Sep 17 00:00:00 2001 From: Mohammed Sadiq Date: Sun, 16 Sep 2018 20:08:25 +0530 Subject: [PATCH] gdkselectioninputstream-x11: Fix memory leak --- gdk/x11/gdkselectioninputstream-x11.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gdk/x11/gdkselectioninputstream-x11.c b/gdk/x11/gdkselectioninputstream-x11.c index 55f83b4975..99778c236d 100644 --- a/gdk/x11/gdkselectioninputstream-x11.c +++ b/gdk/x11/gdkselectioninputstream-x11.c @@ -140,7 +140,7 @@ gdk_x11_selection_input_stream_flush (GdkX11SelectionInputStream *stream) written, priv->pending_size)); g_task_return_int (priv->pending_task, written); - priv->pending_task = NULL; + g_clear_object (&priv->pending_task); priv->pending_data = NULL; priv->pending_size = 0; }