forked from AuroraMiddleware/gtk
gdk/wayland: Clear GdkWaylandMonitor::output using g_clear_pointer()
Use g_clear_pointer() to make tear down code consistent.
This commit is contained in:
parent
e82e7823a8
commit
1d94aefe2b
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user