mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-27 14:10:30 +00:00
gdk/wayland: Destroy zxdg_output_v1 upon GdkWaylandMonitor destruction
It prevents potentially leaking memory.
This commit is contained in:
parent
0de172f03d
commit
e82e7823a8
@ -47,6 +47,7 @@ gdk_wayland_monitor_finalize (GObject *object)
|
|||||||
|
|
||||||
g_free (monitor->name);
|
g_free (monitor->name);
|
||||||
|
|
||||||
|
g_clear_pointer (&monitor->xdg_output, zxdg_output_v1_destroy);
|
||||||
wl_output_destroy (monitor->output);
|
wl_output_destroy (monitor->output);
|
||||||
|
|
||||||
G_OBJECT_CLASS (gdk_wayland_monitor_parent_class)->finalize (object);
|
G_OBJECT_CLASS (gdk_wayland_monitor_parent_class)->finalize (object);
|
||||||
|
Loading…
Reference in New Issue
Block a user