mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-27 22:20:24 +00:00
wayland: Don't leak all surfaces
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 590f3dfa1f
.
This commit is contained in:
parent
8e00f6e5e5
commit
62951c7277
@ -896,8 +896,6 @@ _gdk_wayland_display_create_surface (GdkDisplay *display,
|
|||||||
surface->width = width;
|
surface->width = width;
|
||||||
surface->height = height;
|
surface->height = height;
|
||||||
|
|
||||||
g_object_ref (surface);
|
|
||||||
|
|
||||||
/* More likely to be right than just assuming 1 */
|
/* More likely to be right than just assuming 1 */
|
||||||
if (wl_compositor_get_version (display_wayland->compositor) >= WL_SURFACE_SET_BUFFER_SCALE_SINCE_VERSION)
|
if (wl_compositor_get_version (display_wayland->compositor) >= WL_SURFACE_SET_BUFFER_SCALE_SINCE_VERSION)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user