From 1d94aefe2be21051497ad5861d5956e6bd20e307 Mon Sep 17 00:00:00 2001 From: Vlad Zahorodnii Date: Tue, 22 Nov 2022 11:23:08 +0200 Subject: [PATCH] gdk/wayland: Clear GdkWaylandMonitor::output using g_clear_pointer() Use g_clear_pointer() to make tear down code consistent. --- gdk/wayland/gdkmonitor-wayland.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gdk/wayland/gdkmonitor-wayland.c b/gdk/wayland/gdkmonitor-wayland.c index 0502113145..b4523e016e 100644 --- a/gdk/wayland/gdkmonitor-wayland.c +++ b/gdk/wayland/gdkmonitor-wayland.c @@ -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); } -- 2.30.2