projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
79d8220
)
wayland: Don't leak all surfaces
author
Benjamin Otte
<otte@redhat.com>
Fri, 21 Apr 2023 07:26:23 +0000
(09:26 +0200)
committer
Matthias Clasen
<mclasen@redhat.com>
Fri, 21 Apr 2023 07:26:23 +0000
(09:26 +0200)
X11 does add an extra reference to surfaces that gets released when the
DestroyNotify event arrives.
Wayland doesn't ave such an event, so that reference never gets
released.
This fixes a copy/paste error introduced in commit
590f3dfa1fcb
.
gdk/wayland/gdksurface-wayland.c
patch
|
blob
|
history
diff --git
a/gdk/wayland/gdksurface-wayland.c
b/gdk/wayland/gdksurface-wayland.c
index 40b136cb9830e933d15954fc413e63471b0874b2..4ded69338546277d55046ad6257ae9a298e81d3e 100644
(file)
--- a/
gdk/wayland/gdksurface-wayland.c
+++ b/
gdk/wayland/gdksurface-wayland.c
@@
-520,8
+520,6
@@
_gdk_wayland_display_create_surface (GdkDisplay *display,
surface->width = width;
surface->height = height;
- g_object_ref (surface);
-
/* More likely to be right than just assuming 1 */
if (display_wayland->compositor_version >= WL_SURFACE_HAS_BUFFER_SCALE)
{