[gtk/wip/otte/for-main] gdk: Plug a memleak




commit 248e33e3c98933c4afe43b81512ec4cbf11be7b6
Author: Benjamin Otte <otte redhat com>
Date:   Fri Aug 19 02:38:11 2022 +0200

    gdk: Plug a memleak
    
    Free GdkIOPipe struct when freeing it
    Don't just free all its members.
    
    Fixes #5110

 gdk/gdkpipeiostream.c | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/gdk/gdkpipeiostream.c b/gdk/gdkpipeiostream.c
index fe5a77e168..55221603bf 100644
--- a/gdk/gdkpipeiostream.c
+++ b/gdk/gdkpipeiostream.c
@@ -75,6 +75,8 @@ gdk_io_pipe_unref (GdkIOPipe *pipe)
 
   g_cond_clear (&pipe->cond);
   g_mutex_clear (&pipe->mutex);
+
+  g_slice_free (GdkIOPipe, pipe);
 }
 
 static void


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