summaryrefslogtreecommitdiff
path: root/gdk/wayland
diff options
context:
space:
mode:
authorVlad Zahorodnii <vlad.zahorodnii@kde.org>2022-11-22 11:23:08 +0200
committerVlad Zahorodnii <vlad.zahorodnii@kde.org>2022-11-22 11:23:08 +0200
commit1d94aefe2be21051497ad5861d5956e6bd20e307 (patch)
treea6e30b665828b240ada5467b97e93a1941df272c /gdk/wayland
parente82e7823a886f2e443983e2a4436d9a57369a0b5 (diff)
downloadgtk+-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.c2
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);
}