win32: Plug listmodel memory leaks

We were leaking references returned from g_list_model_get_item
in some places.
This commit is contained in:
Matthias Clasen 2020-11-10 09:06:37 -05:00
parent 06fbad0b26
commit 7e089664fc

View File

@ -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);