[gtk/matthiasc/for-master: 1/6] wayland: Plug listmodel memory leaks
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/matthiasc/for-master: 1/6] wayland: Plug listmodel memory leaks
- Date: Tue, 10 Nov 2020 14:08:51 +0000 (UTC)
commit 06fbad0b26caed764d862f51d0c12b12fa776b30
Author: Matthias Clasen <mclasen redhat com>
Date: Tue Nov 10 09:05:55 2020 -0500
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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]