gdk/wayland: Clear GdkWaylandMonitor::output using g_clear_pointer()

Use g_clear_pointer() to make tear down code consistent.
This commit is contained in:
Vlad Zahorodnii 2022-11-22 11:23:08 +02:00
parent e82e7823a8
commit 1d94aefe2b

View File

@ -48,7 +48,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_clear_pointer (&monitor->output, wl_output_destroy);
G_OBJECT_CLASS (gdk_wayland_monitor_parent_class)->finalize (object);
}