gdk: Plug a memleak
authorBenjamin Otte <otte@redhat.com>
Fri, 19 Aug 2022 00:38:11 +0000 (02:38 +0200)
committerBenjamin Otte <otte@redhat.com>
Fri, 19 Aug 2022 00:38:11 +0000 (02:38 +0200)
Free GdkIOPipe struct when freeing it
Don't just free all its members.

Fixes #5110

gdk/gdkpipeiostream.c

index fe5a77e168a4d5c5ceb112a3108d600d85bb37f3..55221603bf451e7763006e8d4d9260f54be4d5f5 100644 (file)
@@ -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