diff --git a/src/wayland/meta-xwayland.c b/src/wayland/meta-xwayland.c index 1f98445bf..aec151992 100644 --- a/src/wayland/meta-xwayland.c +++ b/src/wayland/meta-xwayland.c @@ -505,7 +505,10 @@ meta_xwayland_start (MetaXWaylandManager *manager, out: if (!started) - unlink (manager->lockfile); + { + unlink (manager->lockfile); + g_clear_pointer (&manager->lockfile, g_free); + } return started; }