diff options
author | Vlad Zahorodnii <vlad.zahorodnii@kde.org> | 2022-11-22 11:23:08 +0200 |
---|---|---|
committer | Vlad Zahorodnii <vlad.zahorodnii@kde.org> | 2022-11-22 11:23:08 +0200 |
commit | 1d94aefe2be21051497ad5861d5956e6bd20e307 (patch) | |
tree | a6e30b665828b240ada5467b97e93a1941df272c /gdk/wayland | |
parent | e82e7823a886f2e443983e2a4436d9a57369a0b5 (diff) | |
download | gtk+-1d94aefe2be21051497ad5861d5956e6bd20e307.tar.gz |
gdk/wayland: Clear GdkWaylandMonitor::output using g_clear_pointer()
Use g_clear_pointer() to make tear down code consistent.
Diffstat (limited to 'gdk/wayland')
-rw-r--r-- | gdk/wayland/gdkmonitor-wayland.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); } |