From 06fbad0b26caed764d862f51d0c12b12fa776b30 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Tue, 10 Nov 2020 09:05:55 -0500 Subject: wayland: Plug listmodel memory leaks We were leaking references returned from g_list_model_get_item in some places. --- gdk/wayland/gdksurface-wayland.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gdk/wayland/gdksurface-wayland.c b/gdk/wayland/gdksurface-wayland.c index df106ee6e3..73c59779ff 100644 --- a/gdk/wayland/gdksurface-wayland.c +++ b/gdk/wayland/gdksurface-wayland.c @@ -1270,6 +1270,7 @@ configure_surface_geometry (GdkSurface *surface) monitor = g_list_model_get_item (gdk_display_get_monitors (display), 0); gdk_monitor_get_geometry (monitor, &monitor_geometry); + g_object_unref (monitor); bounds_width = monitor_geometry.width; bounds_height = monitor_geometry.height; -- cgit v1.2.1