gdk/wayland: Destroy zxdg_output_v1 upon GdkWaylandMonitor destruction

It prevents potentially leaking memory.
This commit is contained in:
Vlad Zahorodnii 2022-11-22 11:03:05 +02:00
parent 0de172f03d
commit e82e7823a8

View File

@ -47,6 +47,7 @@ gdk_wayland_monitor_finalize (GObject *object)
g_free (monitor->name);
g_clear_pointer (&monitor->xdg_output, zxdg_output_v1_destroy);
wl_output_destroy (monitor->output);
G_OBJECT_CLASS (gdk_wayland_monitor_parent_class)->finalize (object);