diff options
author | Matthias Clasen <mclasen@redhat.com> | 2020-11-10 09:05:55 -0500 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2020-11-10 09:05:55 -0500 |
commit | 06fbad0b26caed764d862f51d0c12b12fa776b30 (patch) | |
tree | f0891ce5380ef0f088ea4acd4eb6a2e4c7969812 | |
parent | 3e8260d5283402522cfe09a6ffc5fcf2e930561e (diff) | |
download | gtk+-06fbad0b26caed764d862f51d0c12b12fa776b30.tar.gz |
wayland: Plug listmodel memory leaks
We were leaking references returned from g_list_model_get_item
in some places.
-rw-r--r-- | gdk/wayland/gdksurface-wayland.c | 1 |
1 files changed, 1 insertions, 0 deletions
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; |