projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
918dd66
)
gdk: Plug a memleak
author
Benjamin Otte
<otte@redhat.com>
Fri, 19 Aug 2022 00:38:11 +0000
(
02:38
+0200)
committer
Benjamin 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
patch
|
blob
|
history
diff --git
a/gdk/gdkpipeiostream.c
b/gdk/gdkpipeiostream.c
index fe5a77e168a4d5c5ceb112a3108d600d85bb37f3..55221603bf451e7763006e8d4d9260f54be4d5f5 100644
(file)
--- 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