[gtk/wip/sadiq/fixes: 150/150] gdkselectioninputstream-x11: Fix memory leak



commit 1ce960c85b3fb88778045c0f6c691eadd1c9b307
Author: Mohammed Sadiq <sadiq sadiqpk org>
Date:   Sun Sep 16 20:08:25 2018 +0530

    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;
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]