mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-13 22:10:08 +00:00
win32: Plug listmodel memory leaks
We were leaking references returned from g_list_model_get_item in some places.
This commit is contained in:
parent
06fbad0b26
commit
7e089664fc
@ -1982,6 +1982,7 @@ calculate_aerosnap_regions (GdkW32DragMoveResizeContext *context)
|
||||
GdkMonitor *monitor;
|
||||
|
||||
monitor = g_list_model_get_item (monitors, monitor_idx);
|
||||
g_object_unref (monitor);
|
||||
gdk_win32_monitor_get_workarea (monitor, &wa);
|
||||
gdk_monitor_get_geometry (monitor, &geometry);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user