From: Vlad Zahorodnii Date: Tue, 22 Nov 2022 09:23:08 +0000 (+0200) Subject: gdk/wayland: Clear GdkWaylandMonitor::output using g_clear_pointer() X-Git-Tag: archive/raspbian/4.12.3+ds-1+rpi1~1^2^2^2~22^2~9^2~78^2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=1d94aefe2be21051497ad5861d5956e6bd20e307;p=gtk4.git gdk/wayland: Clear GdkWaylandMonitor::output using g_clear_pointer() Use g_clear_pointer() to make tear down code consistent. --- 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); }