forked from AuroraMiddleware/gtk
wayland: Plug listmodel memory leaks
We were leaking references returned from g_list_model_get_item in some places.
This commit is contained in:
parent
3e8260d528
commit
06fbad0b26
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user